This method takes into account cases where the number might contain formatting, but doesn't
allow additional digits to be appended.
public isEmergencyNumber ( $number, $regionCode ) : boolean | ||
$number | String The phone number to test | |
$regionCode | String The region where the phone number is being dialed | |
Résultat | boolean | if the number exactly matches an emergency services number in the given region. |