Bitrix API

Formatter

Table of Contents

Methods

format()  : mixed
formatOriginal()  : string
Formats number using original format. No digit or significant char should be added or removed.

Methods

format()

public static format(PhoneNumber $number, mixed $formatType[, mixed $forceNationalPrefix = false ]) : mixed
Parameters
$number : PhoneNumber
$formatType : mixed
$forceNationalPrefix : mixed = false

formatOriginal()

Formats number using original format. No digit or significant char should be added or removed.

public static formatOriginal(PhoneNumber $number) : string
Parameters
$number : PhoneNumber

Phone number.

Return values
string

        
On this page

Search results