💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
~~~ /** * 校验邮箱格式 * @param $utfstr */ function check_email($phonenumber ='13712345678'){ $phonenumber =phonenumber ; if(preg\_match("/^1\[34578\]{1}\\d{9}$/",$phonenumber)){ if(preg_match($pattern,$email)){ $remsg='是手机号码!'; }else{ $remsg='不是手机号码!'; } return $remsg; } }s ~~~ ~~~ /** * 判断手机格式是否正确 * @param $mobile */ function is_mobile($mobile) { return preg_match('/1[3456789]{1}\d{9}$/',$mobile); } ~~~