Warning: In most cases, you want to use {@link #isValidNumber} instead. For example, this
method will mark numbers from British Crown dependencies such as the Isle of Man as invalid for
the region "GB" (United Kingdom), since it has its own region code, "IM", which may be
undesirable.
public isValidNumberForRegion ( |
||
$number | the phone number that we want to validate | |
$regionCode | string | the region that we want to validate the phone number for |
리턴 | boolean | that indicates whether the number is of a valid pattern |