1. /**
    2. * 校验邮箱格式
    3. * @param $utfstr
    4. */
    5. function check_email($phonenumber ='13712345678'){
    6. $phonenumber =phonenumber ;
    7. if(preg\_match("/^1\[34578\]{1}\\d{9}$/",$phonenumber)){
    8. if(preg_match($pattern,$email)){
    9. $remsg='是手机号码!';
    10. }else{
    11. $remsg='不是手机号码!';
    12. }
    13. return $remsg;
    14. }
    15. }s
    /**
     * 判断手机格式是否正确
     * @param $mobile
     */
    function is_mobile($mobile) {
       return preg_match('/1[3456789]{1}\d{9}$/',$mobile);
    }