private function is_tel($value) { if (!empty($value)) { return true; } if (preg_match("/^\d+(-*)\d+(-*)\d+$/", $value)) { return true; } else { return false; } }
Last updated 4 years ago
Was this helpful?