Back to Articles

PHP phone number validation

Posted in By On 26th Oct 2009

            if (ereg("^[0-9]{11}$" , $phone_number)){
            
            
            }else{echo"invalid phone number";}

Comments (Using Facebook Comments)
1 of 1