- PHP code
$county="大中华区";
echo "".$ci=iconv_strlen($county,"UTF-8")."";
for($j=0;$j<$ci;$j++){
echo $e.=iconv_substr($county,$j,$j);
}
------解决方案--------------------
- PHP code
------解决方案--------------------
- PHP code
大 中 华 区 [User:root Time:19:21:36 Path:/home/liangdong/php]$ cat mb.php
------解决方案--------------------
- PHP code
$county="大中华区"; $array=str_split($county,2);
------解决方案--------------------