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;}
1 : 汉字数字英文的混合字符串
2 : 汉字数字的混合字符串
3 : 汉字英文的混合字符串
4 : 数字英文的混合字符串
5 : 纯汉字
6 : 纯数字
7 : 纯英文
8 : 其它
上面是“织梦dedecms php常用函数”的全面内容,想了解更多关于 织梦cms 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_418.html
workflows工作流
树枝上一只色彩斑斓的小鸟
一群蜜蜂和一个六边形蜂巢ComfyUI工作流
一棵树从鸟笼里长出来的梦幻般场景
在白雪覆盖的广阔平原上两只可爱的小猫
令人着迷的一只老虎ComfyUI工作流
哈利波特魔法ComfyUI工作流
一个戴着破旧莎帽子的机械忍者站在冰林中
一个破旧的工厂,一个骷髅雕像
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!