Today, We want to share with you php validate phone number.In this post we will show you indian phone number validation in php, hear for how to validation phone number in php procedural programming? we will give you demo and example for implement.In this post, we will learn about 10 digit mobile number validation in jquery with an example.
How to validation phone number using PHP?
Example 1: how to validate phone number in php procedural programming
Example 2: how to validation phone number in php procedural programming?
Example 3: how to validate phone number in php procedural programming?
Your given values are as:"; echo $name; echo "Absolute classes registration
* required field.
"; echo $email; echo "
"; echo $blogspot; echo "
"; echo $message; echo "
"; echo $gender; ?>
if (preg_match("/^[a-z0-9_]+$/i", $name) ) { return true; } else { echo "Enter valid membername" }
Member Validation Form
if((preg_match("/[^0-9]/", '', $str)) && strlen($str) == 10) { echo "Sorry, Invalid phone number }
if(empty($name) && empty($number) && empty($email)) { echo "All fields are compulsory" }
Welcome I am Pakainfo.com'; ?>
if(strlen($name) >=5 && strlen($name)<=10)
I hope you get an idea about php international phone number validation.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.