織夢dedecms php常用函數-跟版網,dedecms
導讀:dedecmsdedecmsfunctioncheckStr($str){ $output=; $a=ereg([.chr(0xa1).-.chr(0xff).],$str); $b=er織夢cms模板免費織夢模板。
function checkStr($str){
$output='';
$a=ereg('['.chr(0xa1).'-'.chr(0xff).']', $str);
$b=ereg('[0-9]', $str);
$c=ereg('[a-zA-Z]', $str);
&nbs織夢cms模板p; 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';}
dede商城模板 elseif(!$a && !$b && $c){ $output='7';}
else{ $output = 8;}
returdede模板安裝n $output;
}
1 : 漢字數字英文的混合字符串
2 : 漢字數字的混合字符串
3 : 漢字英文的混合字符串
4 : 數字英文的混合字符串
5 : 純漢字
6 : 純數字
7 : 純英文
8 : 其它相關織夢cms模板免費織夢模板。
聲明: 本文由我的SEOUC技術文章主頁發布于:2023-07-19 ,文章織夢dedecms php常用函數-跟版網,dedecms主要講述函數,常用,織夢網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_30112.html