时间:2021-07-01 10:21:17 帮助过:5人阅读
";
echo "数字个数:".count($arrNum[0])."
";
echo "字母个数:".count($arrAl[0])."
";
echo "中文个数:".count($arrCh[0]);
?>
http://www.bkjia.com/PHPjc/327831.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/327831.htmlTechArticle 代码如下:
?php echo $str = "43fdf测试fdsfadaf43543543职工问防盗锁防盗锁5345gfdgd"; preg_match_all("/[0-9]{1}/",$str,$arrNum); preg_match_all("/[a-zA-Z]{...