PHP Класс UTF

Наследование: extends Prefab
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
bom ( ) : string Return UTF-8 byte order mark
emojify ( $str ) : string Translate emoji tokens to Unicode font-supported symbols
ltrim ( $str ) : string Strip whitespaces from the beginning of a string
rtrim ( $str ) : string Strip whitespaces from the end of a string
stripos ( $stack, $needle, $ofs ) : integer | FALSE Find position of first occurrence of a string (case-insensitive)
stristr ( $stack, $needle, $before = FALSE ) : string | FALSE Returns part of haystack string from the first occurrence of needle to the end of haystack (case-insensitive)
strlen ( $str ) : integer Get string length
strpos ( $stack, $needle, $ofs, $case = FALSE ) : integer | FALSE Find position of first occurrence of a string
strrev ( $str ) : string Reverse a string
strstr ( $stack, $needle, $before = FALSE, $case = FALSE ) : string | FALSE Returns part of haystack string from the first occurrence of needle to the end of haystack
substr ( $str, $start, $len ) : string | FALSE Return part of a string
substr_count ( $stack, $needle ) : integer Count the number of substring occurrences
translate ( $str ) : string Convert code points to Unicode symbols
trim ( $str ) : string Strip whitespaces from the beginning and end of a string

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

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

Return UTF-8 byte order mark
public bom ( ) : string
Результат string

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

Translate emoji tokens to Unicode font-supported symbols
public emojify ( $str ) : string
$str string
Результат string

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

Strip whitespaces from the beginning of a string
public ltrim ( $str ) : string
$str string
Результат string

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

Strip whitespaces from the end of a string
public rtrim ( $str ) : string
$str string
Результат string

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

Find position of first occurrence of a string (case-insensitive)
public stripos ( $stack, $needle, $ofs ) : integer | FALSE
$stack string
$needle string
$ofs int
Результат integer | FALSE

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

Returns part of haystack string from the first occurrence of needle to the end of haystack (case-insensitive)
public stristr ( $stack, $needle, $before = FALSE ) : string | FALSE
$stack string
$needle string
$before bool
Результат string | FALSE

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

Get string length
public strlen ( $str ) : integer
$str string
Результат integer

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

Find position of first occurrence of a string
public strpos ( $stack, $needle, $ofs, $case = FALSE ) : integer | FALSE
$stack string
$needle string
$ofs int
$case bool
Результат integer | FALSE

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

Reverse a string
public strrev ( $str ) : string
$str string
Результат string

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

Returns part of haystack string from the first occurrence of needle to the end of haystack
public strstr ( $stack, $needle, $before = FALSE, $case = FALSE ) : string | FALSE
$stack string
$needle string
$before bool
$case bool
Результат string | FALSE

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

Return part of a string
public substr ( $str, $start, $len ) : string | FALSE
$str string
$start int
$len int
Результат string | FALSE

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

Count the number of substring occurrences
public substr_count ( $stack, $needle ) : integer
$stack string
$needle string
Результат integer

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

Convert code points to Unicode symbols
public translate ( $str ) : string
$str string
Результат string

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

Strip whitespaces from the beginning and end of a string
public trim ( $str ) : string
$str string
Результат string