Answers for "validate phone number php"

PHP
1

php validate phone number

$phone = '000-0000-0000';

if(preg_match("/^[0-9]{3}-[0-9]{4}-[0-9]{4}$/", $phone)) {
  // $phone is valid
}
Posted by: Guest on February-23-2021
0

php program to validate phone number using regular expression

preg_match('/^[0-9]{10}+$/', $mobile)
Posted by: Guest on February-27-2021

Code answers related to "validate phone number php"

Browse Popular Code Answers by Language