Bitrix API

Text

Class Text

Table of Contents

Methods

formatArrayToText()  : string
Format array to text.
replace()  : string
Replace template by data.

Methods

formatArrayToText()

Format array to text.

public static formatArrayToText(array<string|int, mixed> $list) : string
Parameters
$list : array<string|int, mixed>

List.

Return values
string

replace()

Replace template by data.

public static replace(string $template, array<string|int, mixed> $data[, bool $isCut = false ]) : string
Parameters
$template : string

Template text.

$data : array<string|int, mixed>

Replace data.

$isCut : bool = false

Is cut areas if empty data.

Return values
string

        
On this page

Search results