标签:style blog color sp div c log r bs
1 $str1="是你"; 2 $strA = trim($str1); 3 $lenA = strlen($strA); 4 $lenB = mb_strlen($strA,"utf-8"); 5 if($lenA===$lenB){ 6 echo "英文"; 7 }else{ 8 if($lenA % $lenB == 0){ 9 echo "中文"; 10 }else{ 11 echo "中英"; 12 } 13 }
标签:style blog color sp div c log r bs
原文地址:http://www.cnblogs.com/hgj123/p/4011186.html