首页 何问起 前端特效 htbtn-4 闪电 使用方法

PHP验证邮箱地址代码

PHP验证邮箱代码:

function isEmail($email) {
        return strlen($email) > 6 && preg_match("/^[\w\-\.]+@[\w\-\.]+(\.\w+)+$/", $email);
    }

http://www.cnblogs.com/roucheng/

posted @ 2013-12-02 16:56  roucheng  阅读(501)  评论(0编辑  收藏  举报