Gets a valid number for the specified region and number type.
public getExampleNumberForType ( string | integer $regionCodeOrType, integer $type = null ) : |
||
$regionCodeOrType | string | integer | the region for which an example number is needed |
$type | integer | the PhoneNumberType of number that is needed |
return | a valid number for the specified region and type. Returns null when the metadata does not contain such information or if an invalid region or region 001 was entered. For 001 (representing non-geographical numbers), call {@link #getExampleNumberForNonGeoEntity} instead. If $regionCodeOrType is the only parameter supplied, then a valid number for the specified number type will be returned that may belong to any country. |