Returns a number formatted in such a way that it can be dialed from a mobile phone in a
specific region. If the number cannot be reached from the region (e.g. some countries block
toll-free numbers from being called outside of the country), the method returns an empty
string.
public formatNumberForMobileDialing ( |
||
$number | the phone number to be formatted | |
$regionCallingFrom | string | the region where the call is being placed |
$withFormatting | boolean | whether the number should be returned with formatting symbols, such as spaces and dashes. |
return | string | the formatted phone number |