最新回答 / Songo
$str="就是就是"echo strlen($str);//返回12,是因为字符编码是utf-8,检查方法是这样的:<?php$string="就是就是";$encode = mb_detect_encoding($string, array("ASCII","UTF-8","GB2312","GBK"));echo $encode;?>
2016-06-10