Here is a function to check the validity of a UK (United Kingdom) business or domestic telephone number (including those associated with mobile networks) specified by the supplied parameter. The phone number will be considered as valid if it contains 10 to 11 number digits, a valid area code, has no country code, and starts with 0.
The definition of a valid telephone number has been taken from the Ofcom specification.
If the parameter has a valid format and corresponds to an appropriate telephone number, the function returns a [b]true[/b] value. Else, It will return an error message.
This function will not accept an extension number.
Get the script/source code here
You must be logged in to post a comment.