验证邮箱 if(preg_match('/^([a-zA-Z0-9]+)\@([a-zA-Z0-9]+)\.com$/i', $mail)){ return true; }else{ return false; }