bool phoneNumber(
string
$number, [bool
$withAreaCode = true])
|
|
Validates a Canadian phone number.
Canada and the United States share the same numbering plan, hence you can also call Validate_US::phoneNumber()
Can allow only seven digit numbers. Also allows the formats, (xxx) xxx-xxxx, xxx xxx-xxxx, And now x (xxx) xxx-xxxx or various combination without spaces, dashes. THIS SHOULD EVENTUALLY take a FORMAT in the options, instead
Parameters: