Use {@link #formatNationalNumberWithCarrierCode} instead if the carrier code passed in should take precedence over the number's {@code preferredDomesticCarrierCode} when formatting.
public formatNationalNumberWithPreferredCarrierCode ( |
||
$number | the phone number to be formatted | |
$fallbackCarrierCode | string | the carrier selection code to be used, if none is found in the phone number itself |
return | string | the formatted phone number in national format for dialing using the number's {@code preferredDomesticCarrierCode}, or the {@code fallbackCarrierCode} passed in if none is found |