Tests whether a phone number has a geographical association. It checks if the number is
associated to a certain region in the country where it belongs to. Note that this doesn't
verify if the number is actually in use.
isNumberGeographical(PhoneNumberType, $countryCallingCode)
Tests whether a phone number has a geographical association, as represented by its type and the
country it belongs to.
This version exists since calculating the phone number type is expensive; if we have already
done this, we don't want to do it again.
public isNumberGeographical ( |
||
$phoneNumberObjOrType | A PhoneNumber object, or a PhoneNumberType integer | |
$countryCallingCode | integer | null | Used when passing a PhoneNumberType |
Résultat | boolean |