method
public
static
BinaryString::getLength()
Сигнатура
public static getLength(mixed $str) : int
Описание
Двоичная версия strlen.
Параметры
$str
mixed
Возвращаемое значение
int
Как применяется в BinaryString
BinaryString::getLength() — метод класса \Bitrix\Main\Text\BinaryString модуля «Главный модуль».
Статический метод — вызывается через имя класса BinaryString, без создания объекта.
use Bitrix\Main\Text\BinaryString;
$str = null;
$result = BinaryString::getLength($str);
// $result: intДругие методы BinaryString
changeCaseToLower()Двоичная версия strtolower.getLastPosition()Двоичная версия strrpos.getLastPositionIgnoreCase()Двоичная версия strripos.getPosition()Двоичная версия strpos.getPositionIgnoreCase()Двоичная версия stripos.getSubstring()Двоичная версия substr.
getLength() есть и у других классов модуля «Главный модуль»: ArrayResult, MssqlResult, MysqliResult, OracleResult, PgsqlResult, Result, Result, SqlTrackerQuery.
Исходный файл: source/main/lib/text/binarystring.php:20

