Bitrix API

BinaryString

Use str* functions for binary strings and mb_* for characters.

Table of Contents

Methods

changeCaseToLower()  : string
Binary version of strtolower.
getLastPosition()  : bool|int
Binary version of strrpos.
getLastPositionIgnoreCase()  : int
Binary version of strripos.
getLength()  : int
Binary version of strlen.
getPosition()  : bool|int
Binary version of strpos.
getPositionIgnoreCase()  : int
Binary version of stripos.
getSubstring()  : string
Binary version of substr.

Methods

changeCaseToLower()

Binary version of strtolower.

public static changeCaseToLower(mixed $str) : string
Parameters
$str : mixed
Return values
string

getLastPosition()

Binary version of strrpos.

public static getLastPosition(mixed $haystack, mixed $needle[, int $offset = 0 ]) : bool|int
Parameters
$haystack : mixed
$needle : mixed
$offset : int = 0
Return values
bool|int

getLastPositionIgnoreCase()

Binary version of strripos.

public static getLastPositionIgnoreCase(mixed $haystack, mixed $needle[, int $offset = 0 ]) : int
Parameters
$haystack : mixed
$needle : mixed
$offset : int = 0
Return values
int

getLength()

Binary version of strlen.

public static getLength(mixed $str) : int
Parameters
$str : mixed
Return values
int

getPosition()

Binary version of strpos.

public static getPosition(mixed $haystack, mixed $needle[, int $offset = 0 ]) : bool|int
Parameters
$haystack : mixed
$needle : mixed
$offset : int = 0
Return values
bool|int

getPositionIgnoreCase()

Binary version of stripos.

public static getPositionIgnoreCase(mixed $haystack, mixed $needle[, int $offset = 0 ]) : int
Parameters
$haystack : mixed
$needle : mixed
$offset : int = 0
Return values
int

getSubstring()

Binary version of substr.

public static getSubstring(mixed $str, mixed $start, array<string|int, mixed> ...$args) : string
Parameters
$str : mixed
$start : mixed
$args : array<string|int, mixed>
Return values
string

        
On this page

Search results