織夢dedecms php常用函數(shù)-跟版網(wǎng),dedecms
導(dǎo)讀: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 : 漢字?jǐn)?shù)字英文的混合字符串
2 : 漢字?jǐn)?shù)字的混合字符串
3 : 漢字英文的混合字符串
4 : 數(shù)字英文的混合字符串
5 : 純漢字
6 : 純數(shù)字
7 : 純英文
8 : 其它相關(guān)織夢cms模板免費織夢模板。
聲明: 本文由我的SEOUC技術(shù)文章主頁發(fā)布于:2023-07-19 ,文章織夢dedecms php常用函數(shù)-跟版網(wǎng),dedecms主要講述函數(shù),常用,織夢網(wǎng)站建設(shè)源碼以及服務(wù)器配置搭建相關(guān)技術(shù)文章。轉(zhuǎn)載請保留鏈接: http://www.bifwcx.com/article/web_30112.html