<div class="codetitle"><a style="CURSOR: pointer" data="36429" class="copybut" id="copybut36429" onclick="doCopy('code36429')"> 代码如下:@H_301_1@<div class="codebody" id="code36429">
<?PHP
echo $str = "43fdf测试fdsfadaf43543543职工问防盗锁防盗锁5345gfdgd";
preg_match_all("/[0-9]{1}/",$str,$arrNum);
preg_match_all("/[a-zA-Z]{1}/",$arrAl);
preg_match_all("/([/x{4e00}-/x{9fa5}]){1}/u",$arrCh);
echo "";
echo "数字个数:".count($arrNum[0])."
";
echo "字母个数:".count($arrAl[0])."
";
echo "中文个数:".count($arrCh[0]);
?>
@H_301_1@