Your Airkit journey starts here

FORMAT_PHONE

take in a phone number string and format the output to the corresponding format.

Declaration

FORMAT_PHONE(phone_number_string, format_string) -> formatted_phone_number
FORMAT_PHONE(phone_number_string, format_string, region) -> formatted_phone_number

Parameters

phone_number_string
string -Phone number in string format.
format_string
string -String representing the output format (any of "E164", "INTERNATIONAL", "NATIONAL", "RFC3966").
region
string -String representing the 2 digit country code.

Return Values

formatted_phone_number
string -String with the formatted phone number.