Tests whether a short number matches a valid pattern. If a country calling code is shared by
multiple regions, this returns true if it's valid in any of them. Note that this doesn't verify
the number is actually in use, which is impossible to tell by just looking at the number
itself. See {@link #isValidShortNumberForRegion(PhoneNumber, String)} for details.
public isValidShortNumber ( |
||
$number | PhoneNumber the short number for which we want to test the validity | |
return | boolean | whether the short number matches a valid pattern |