84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
如题,怎么处理中文字符串
认证0级讲师
php manual的strrev下面评论区有个函数算是正则表达式的另类用法
function utf8_strrev($str){ preg_match_all('/./us', $str, $ar); return join('',array_reverse($ar[0])); }
把多字节字符串转化成UTF-32字符串,然后一个for循环自己反转,然后再转化成多字节字符串
php manual的strrev下面评论区有个函数
算是正则表达式的另类用法
把多字节字符串转化成UTF-32字符串,然后一个for循环自己反转,然后再转化成多字节字符串