Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to validate phone number in php procedural programming

if((preg_match("/[^0-9]/", '', $str)) && strlen($str) == 10)
{
echo "Invalid phone number
}
Source by blog.udemy.com #
 
PREVIOUS NEXT
Tagged: #validate #phone #number #php #procedural #programming
ADD COMMENT
Topic
Name
3+2 =