Bitrix API

ShortNumberFormatter

Formatter for invalid short numbers, like 32-12-43, just to make them look pretty.

Table of Contents

Methods

format()  : string
Pretty prints some invalid short number.
isApplicable()  : bool
Return true if the phone number could be formatted using this formatter and false otherwise.

Methods

isApplicable()

Return true if the phone number could be formatted using this formatter and false otherwise.

public static isApplicable(PhoneNumber $phoneNumber) : bool
Parameters
$phoneNumber : PhoneNumber

Phone number.

Return values
bool

        
On this page

Search results