1 public function is_phone($phone) 2 { 3 if (preg_match("/^1[34578]{1}\d{9}$/", $phone)) { 4 return true; 5 }else{ 6 return false; 7 } 8 }