Xây dựng method is_tel Ricycle 1.4
private function is_tel($value) {
if (!empty($value)) {
return true;
}
if (preg_match("/^\d+(-*)\d+(-*)\d+$/", $value)) {
return true;
} else {
return false;
}
}
Last updated
Was this helpful?