But i got stuck on how to validate the phone number when i use the international format like ( +255 123 123 123 ). I hope the problem is clear enough. Help please
Phone numbers beginning with 1: Data will be saved as a 10 digit number using parenthesis, removing the first digit (1). Ex: A phone number entered as 12345678901 will be saved as (234) 567-8901; Phone numbers beginning with any other digit: Data will be stored as is without any formatting: Ex: A phone number entered as 23456789012 will be
This is a bad implementation because if the area code starts with 0105555555 or something like that then you end up getting back (01) 555-5555 instead of (010) 555-5555.
Rpv2w.