Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php validate phone number

$phone = '000-0000-0000';

if(preg_match("/^[0-9]{3}-[0-9]{4}-[0-9]{4}$/", $phone)) {
  // $phone is valid
}
Comment

PREVIOUS NEXT
Code Example
Php :: composer require laravelcollection 
Php :: binding instances laravel 
Php :: how can we manage category and product in laravek 
Php :: old codestar radio field 
Php :: in packagemanifest.php line 131 undefined index name 
Php :: Remove WordPress Login error hints 
Php :: Do not call the observer when there is a model update in laravel 
Php :: php base64 encode utf8 
Php :: display page template using functions.php 
Php :: what is the mixmam size that php can take 
Php :: quitar elemento array php 
Php :: Between Two Dates day count and removed Sunday using php 
Php :: magento2 join table with prefix 
Php :: quiz 
Php :: PHPMailer/SMTP.php line 467 
Php :: messagebird php curl send sms example 
Php :: wordpress wpdb delete 
Php :: php post data empty 
Php :: error php 
Php :: read file and convert each line in array php 
Php :: $this 
Php :: define value in php 
Php :: can i install php7.4 inside vagrant homestead 
Php :: remove column laravel migration 
Java :: camera permission android 
Java :: for with two values java 
Java :: how to loop through code 3 times java 
Java :: java dictionary foreach 
Java :: statement delete sql java 
Java :: java remove first character from string 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =