Unicode string manager.
More...
|
| | strlen ($str) |
| |
| | strrev ($str) |
| |
| | stripos ($stack, $needle, $ofs=0) |
| |
| | strpos ($stack, $needle, $ofs=0, $case=FALSE) |
| |
| | stristr ($stack, $needle, $before=FALSE) |
| |
| | strstr ($stack, $needle, $before=FALSE, $case=FALSE) |
| |
| | substr ($str, $start, $len=0) |
| |
| | substr_count ($stack, $needle) |
| |
| | ltrim ($str) |
| |
| | rtrim ($str) |
| |
| | trim ($str) |
| |
| | bom () |
| |
| | translate ($str) |
| |
| | emojify ($str) |
| |
Return UTF-8 byte order mark
- Returns
- string
Translate emoji tokens to Unicode font-supported symbols
- Returns
- string
- Parameters
-
Strip whitespaces from the beginning of a string
- Returns
- string
- Parameters
-
Strip whitespaces from the end of a string
- Returns
- string
- Parameters
-
| UTF::stripos |
( |
|
$stack, |
|
|
|
$needle, |
|
|
|
$ofs = 0 |
|
) |
| |
Find position of first occurrence of a string (case-insensitive)
- Returns
- int|FALSE
- Parameters
-
| $stack | string |
| $needle | string |
| $ofs | int |
| UTF::stristr |
( |
|
$stack, |
|
|
|
$needle, |
|
|
|
$before = FALSE |
|
) |
| |
Returns part of haystack string from the first occurrence of needle to the end of haystack (case-insensitive)
- Returns
- string|FALSE
- Parameters
-
| $stack | string |
| $needle | string |
| $before | bool |
Get string length
- Returns
- int
- Parameters
-
| UTF::strpos |
( |
|
$stack, |
|
|
|
$needle, |
|
|
|
$ofs = 0, |
|
|
|
$case = FALSE |
|
) |
| |
Find position of first occurrence of a string
- Returns
- int|FALSE
- Parameters
-
| $stack | string |
| $needle | string |
| $ofs | int |
| $case | bool |
Reverse a string
- Returns
- string
- Parameters
-
| UTF::strstr |
( |
|
$stack, |
|
|
|
$needle, |
|
|
|
$before = FALSE, |
|
|
|
$case = FALSE |
|
) |
| |
Returns part of haystack string from the first occurrence of needle to the end of haystack
- Returns
- string|FALSE
- Parameters
-
| $stack | string |
| $needle | string |
| $before | bool |
| $case | bool |
| UTF::substr |
( |
|
$str, |
|
|
|
$start, |
|
|
|
$len = 0 |
|
) |
| |
Return part of a string
- Returns
- string|FALSE
- Parameters
-
| $str | string |
| $start | int |
| $len | int |
| UTF::substr_count |
( |
|
$stack, |
|
|
|
$needle |
|
) |
| |
Count the number of substring occurrences
- Returns
- int
- Parameters
-
| $stack | string |
| $needle | string |
Convert code points to Unicode symbols
- Returns
- string
- Parameters
-
Strip whitespaces from the beginning and end of a string
- Returns
- string
- Parameters
-
The documentation for this class was generated from the following file: