PHP Класс lithium\g11n\multibyte\adapter\Mbstring

No known limitations affecting used functionality. Silently strips out badly formed UTF-8 sequences.
Наследование: extends lithium\core\Object
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
enabled ( ) : boolean Determines if this adapter is enabled by checking if the mbstring extension is loaded.
strlen ( string $string ) : integer Here used as a multibyte enabled equivalent of strlen().
strpos ( string $haystack, string $needle, integer $offset ) : integer | boolean Here used as a multibyte enabled equivalent of strpos().
strrpos ( string $haystack, string $needle ) : integer | boolean Here used as a multibyte enabled equivalent of strrpos().
substr ( string $string, integer $start, integer $length ) : string | boolean Here used as a multibyte enabled equivalent of substr().

Описание методов

enabled() публичный статический Метод

Determines if this adapter is enabled by checking if the mbstring extension is loaded.
public static enabled ( ) : boolean
Результат boolean Returns `true` if enabled, otherwise `false`.

strlen() публичный Метод

Here used as a multibyte enabled equivalent of strlen().
public strlen ( string $string ) : integer
$string string
Результат integer

strpos() публичный Метод

Here used as a multibyte enabled equivalent of strpos().
public strpos ( string $haystack, string $needle, integer $offset ) : integer | boolean
$haystack string
$needle string
$offset integer
Результат integer | boolean

strrpos() публичный Метод

Here used as a multibyte enabled equivalent of strrpos().
public strrpos ( string $haystack, string $needle ) : integer | boolean
$haystack string
$needle string
Результат integer | boolean

substr() публичный Метод

Here used as a multibyte enabled equivalent of substr().
public substr ( string $string, integer $start, integer $length ) : string | boolean
$string string
$start integer
$length integer
Результат string | boolean