织梦dedecms php常用函数

织梦dedecms php常用函数

function checkStr($str){ $output=; $a=ereg([.chr(0xa1).-.chr(0xff).], $str); $b=ereg([0-9], $str); $c=ereg([a-zA-Z], $str); if($a $b $c){ $output=1;} elseif($a $b !$c){ $output=2;} elseif($a !$b $c){ $output=3;} elseif(!$a $b $c){ $output=4;} elseif(...