This method takes into account cases where the number might contain formatting, or might have
additional digits appended (when it is okay to do that in the region specified).
public connectsToEmergencyNumber ( $number, $regionCode ) : boolean | ||
$number | String the phone number to test | |
$regionCode | String the region where the phone number is being dialed | |
return | boolean | if the number might be used to connect to an emergency service in the given region. |