$preg = '/^1\d{10}$/';
$pregPhone = preg_match($preg, $input['phone']);
$pregContact = preg_match($preg, $input['contact']);
if (!$pregPhone || !$pregContact) {
Wrapper::beautify('22', '手机号码格式不正确');
}
$user = Users::where("phone", $input['phone'])->find();
if (empty($user)){
Wrapper::beautify('22', '请输入正确的员工手机号码');
}
return preg_match('#杭州#', $item) !== 0;
if (preg_match('/(datetime|timestamp)/is', $info)) {
// 日期及时间戳类型
$value = date('Y-m-d H:i:s', $value);
} elseif (preg_match('/(date)/is', $info)) {
// 日期及时间戳类型
$value = date('Y-m-d', $value);
}