Tests whether a phone number matches a valid pattern. Note this doesn't verify the number
is actually in use, which is impossible to tell by just looking at a number itself.
public isValidNumber ( |
||
$number | the phone number that we want to validate | |
리턴 | boolean | that indicates whether the number is of a valid pattern |