email 简单的php正则校验email地址的函数
简单的php正则校验email地址的函数 [代码片段(14行)]
<?php /* If you won't use filter_var() you should use this instead */ function isEmail($email) { if(preg_match("/^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$/i", $email)) { return true; } else { return false; } } ?>
- 上一篇:json php解析json数据
- 下一篇:移动设备检测 php检测是否是移动设备
精彩图集
精彩文章