Answers for "11 digit phone number validation in 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

validate number should by 12 digit in php

/^$|^[0-9]{12}$/
Posted by: Guest on May-03-2021

Code answers related to "11 digit phone number validation in php"

Browse Popular Code Answers by Language