Copyright @ 2015-2024 织梦园 版权所有 Power by DedeCms
鲁ICP备15039853号-2

模板标签 TAG标签 网站地图 XML地图 今日更新 返回顶部
| 
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($a && !$b && !$c){ $output='5';}
    elseif(!$a && $b && !$c){ $output='6';}
    elseif(!$a && !$b && $c){ $output='7';}
    else{ $output = 8;}
    return $output;
} |