string(12)这个怎么来的、、12是怎么来的??
$str="就是就是"echo strlen($str);
//返回12,是因为字符编码是utf-8,检查方法是这样的:
<?php
$string="就是就是";
$encode = mb_detect_encoding($string, array("ASCII","UTF-8","GB2312","GBK"));
echo $encode;
?>