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;
}
$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;
}
1 : 汉字数字英文的混合字符串
2 : 汉字数字的混合字符串
3 : 汉字英文的混合字符串
4 : 数字英文的混合字符串
5 : 纯汉字
6 : 纯数字
7 : 纯英文
8 : 其它
2 : 汉字数字的混合字符串
3 : 汉字英文的混合字符串
4 : 数字英文的混合字符串
5 : 纯汉字
6 : 纯数字
7 : 纯英文
8 : 其它
The End



大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)