Documentation

replace

string public static
\Bitrix\Main\UserConsent\Text::replace(
 string $template,
 array $data,
 boolean $isCut = false
);

Static method for modifying the text. Returns updated template.

Parameters

ParameterDescriptionVersion
$templateTemplate text.
$dataData for replacement.
$isCuttrue - cut off empty areas, false - do not cut.

Example



© «Bitrix24», 2001-2024
Up