PHP中英文混合无乱码截取
$length){ $str=''; $len=$start+$length; $i = $start; while($i<$len){ if(ord(substr($string, $i, 1))>=128){ $str.=substr($string, $i, 3); $i = $i+ 3; }else{ $str.=substr($string, $i, 1); $i ++; } } return $str; }else{ return $string; } }
新闻名称:PHP中英文混合无乱码截取
标题链接:http://azwzsj.com/article/gjdioh.html