PHP Validate a phone number – PHP September 24, 2011 Pramod T P Leave a comment if( !preg_match(“/^([1]-)?[0-9]{3}-[0-9]{3}-[0-9]{4}$/i”, $phone_number) ) echo ‘Invalid Phone Number’;