PHP Class UTF

Inheritance: extends Prefab
Afficher le fichier Open project: bcosca/fatfree-core Class Usage Examples

Méthodes publiques

Méthode Description
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

Method Details

bom() public méthode

Return UTF-8 byte order mark
public bom ( ) : string
Résultat string

emojify() public méthode

Translate emoji tokens to Unicode font-supported symbols
public emojify ( $str ) : string
$str string
Résultat string

ltrim() public méthode

Strip whitespaces from the beginning of a string
public ltrim ( $str ) : string
$str string
Résultat string

rtrim() public méthode

Strip whitespaces from the end of a string
public rtrim ( $str ) : string
$str string
Résultat string

stripos() public méthode

Find position of first occurrence of a string (case-insensitive)
public stripos ( $stack, $needle, $ofs ) : integer | FALSE
$stack string
$needle string
$ofs int
Résultat integer | FALSE

stristr() public méthode

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
Résultat string | FALSE

strlen() public méthode

Get string length
public strlen ( $str ) : integer
$str string
Résultat integer

strpos() public méthode

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
Résultat integer | FALSE

strrev() public méthode

Reverse a string
public strrev ( $str ) : string
$str string
Résultat string

strstr() public méthode

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
Résultat string | FALSE

substr() public méthode

Return part of a string
public substr ( $str, $start, $len ) : string | FALSE
$str string
$start int
$len int
Résultat string | FALSE

substr_count() public méthode

Count the number of substring occurrences
public substr_count ( $stack, $needle ) : integer
$stack string
$needle string
Résultat integer

translate() public méthode

Convert code points to Unicode symbols
public translate ( $str ) : string
$str string
Résultat string

trim() public méthode

Strip whitespaces from the beginning and end of a string
public trim ( $str ) : string
$str string
Résultat string