php regular expression for phone number and mobile number code example Example: php program to validate phone number using regular expression preg_match('/^[0-9]{10}+$/', $mobile)