All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
PHP5.2+APACHE2.2+BugFree1.0的安装_php资料_编程技术
sql_设置权限_数据库基础_mssql学习_编程技术
delphi组件的基本操作
在ASP.NET中防止注入攻击_[Asp.Net教程]
C#教程:MailMessage类和SmtpClient类使用实例
LINQ体验(8)——LINQ,to,SQL语句之Union,All,、Union、,Intersect
c#写系统日志_[Asp.Net教程]
C#得到文件路径,几种不同需求_[Asp.Net教程]
ASP.NET技巧:dot,net,html分析类库_.net资料_编程技术
php时间加减_php资料_编程技术
Reading number is top 10 pictures
The little girl with long hair3
Beautiful vacuum girl1
这才叫绝色美女1
采访谢楠
云南大理的美女
看到这个手速,决定过年就让我家猫帮我抢红包了。。
Sora aoi on twitter3
A man's favorite things5
A man's favorite things3--ZhouWeiTong
On the verge of extinction of the beach1
Download software ranking
Boxer vs Yellow5
电脑知识及技巧大合集
Unix video tutorial2
Unix video tutorial4
jdk1.6 for windows
VC++6.0简体中文版
Unix video tutorial14
JSP+Ajax Web development typical examples
在线棋牌游戏3.05版
致我们终将逝去的青春
delv published in(发表于) 2013/12/29 4:41:18 Edit(编辑)
PHP判断数字,汉字和英文_php资料_编程技术

PHP判断数字,汉字和英文_php资料_编程技术

PHP判断数字,汉字和英文_php资料_编程技术-你的首页-uuhomepage.com

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='汉字数字英文的混合字符串';}
elseif($a && $b && !$c){ $output='汉字数字的混合字符串';}
elseif($a && !$b && $c){ $output='汉字英文的混合字符串';}
elseif(!$a && $b && $c){ $output='数字英文的混合字符串';}
elseif($a && !$b && !$c){ $output='纯汉字';}
elseif(!$a && $b && !$c){ $output='纯数字';}
elseif(!$a && !$b && $c){ $output='纯英文';}
return $output;
}

echo checkStr('5爱u');
?>





添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.