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
stringgetLastPosition()
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|intgetLastPositionIgnoreCase()
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
intgetLength()
Binary version of strlen.
public
static getLength(mixed $str) : int
Parameters
- $str : mixed
Return values
intgetPosition()
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|intgetPositionIgnoreCase()
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
intgetSubstring()
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>