if (mb_strlen($str,'UTF-8')>=310) {
$half=intval(mb_strlen($str,'UTF-8')/2);
$partOne=mb_substr($str,0,$half);
$partTwo=mb_substr($str,mb_strlen($partOne,'UTF-8'));
}
但我可能会如此
echo $partOne;// text.............stri
echo $partTwo //ng....................
这不应该是
echo $partOne;// text.............string
echo $partTwo;//...some text