Documentation

getLength

integer public static
\Bitrix\Main\Text\BinaryString::getLength(
  $str
);

Static method. Returns string length or 0, if string is empty. Executes safe operation in terms of multibyte character sets. Analog to PHP function strlen.

Parameters

ParameterDescriptionVersion
$strString with length to be adjusted.

Example



© «Bitrix24», 2001-2024
Up