Multibyte handling methods.
array
array
string
Converts the decimal value of a multibyte character string to a string
Converts a multibyte character string to the decimal value of the character
_codepoint( integer $decimal )
Return the Code points range for Unicode characters
$decimal
_find( integer $char , string $type 'lower' )
Find the related code folding values for $char
$char
$type
optional 'lower' ascii( array $array )
Converts the decimal value of a multibyte character string to a string
$array
checkMultibyte( string $string )
Check the $string for multibyte characters
$string
mimeEncode( string $string , string $charset null , string $newline "\r\n" )
Prepare a string for mail transport, using the provided encoding
$string
$charset
optional null $newline
optional "\r\n" stripos( string $haystack , string $needle , integer $offset 0 )
Find position of first occurrence of a case-insensitive string.
$haystack
$needle
$offset
optional 0 The numeric position of the first occurrence of $needle in the $haystack string, or false if $needle is not found.
stristr( string $haystack , string $needle , boolean $part false )
Finds first occurrence of a string within another, case insensitive.
$haystack
$needle
$part
optional false Determines which portion of $haystack this function returns. If set to true, it returns all of $haystack from the beginning to the first occurrence of $needle. If set to false, it returns all of $haystack from the first occurrence of $needle to the end, Default value is false.
strlen( string $string )
Get string length.
$string
strpos( string $haystack , string $needle , integer $offset 0 )
Find position of first occurrence of a string.
$haystack
$needle
$offset
optional 0 The numeric position of the first occurrence of $needle in the $haystack string. If $needle is not found, it returns false.
strrchr( string $haystack , string $needle , boolean $part false )
Finds the last occurrence of a character in a string within another.
$haystack
$needle
$part
optional false Determines which portion of $haystack this function returns. If set to true, it returns all of $haystack from the beginning to the last occurrence of $needle. If set to false, it returns all of $haystack from the last occurrence of $needle to the end, Default value is false.
strrichr( string $haystack , string $needle , boolean $part false )
Finds the last occurrence of a character in a string within another, case insensitive.
$haystack
$needle
$part
optional false Determines which portion of $haystack this function returns. If set to true, it returns all of $haystack from the beginning to the last occurrence of $needle. If set to false, it returns all of $haystack from the last occurrence of $needle to the end, Default value is false.
strripos( string $haystack , string $needle , integer $offset 0 )
Finds position of last occurrence of a string within another, case insensitive
$haystack
$needle
$offset
optional 0 The numeric position of the last occurrence of $needle in the $haystack string, or false if $needle is not found.
strrpos( string $haystack , string $needle , integer $offset 0 )
Find position of last occurrence of a string in a string.
$haystack
$needle
$offset
optional 0 May be specified to begin searching an arbitrary number of characters into the string. Negative values will stop searching at an arbitrary point prior to the end of the string.
The numeric position of the last occurrence of $needle in the $haystack string. If $needle is not found, it returns false.
strstr( string $haystack , string $needle , boolean $part false )
Finds first occurrence of a string within another
$haystack
$needle
$part
optional false Determines which portion of $haystack this function returns. If set to true, it returns all of $haystack from the beginning to the first occurrence of $needle. If set to false, it returns all of $haystack from the first occurrence of $needle to the end, Default value is FALSE.
strtolower( string $string )
Make a string lowercase
$string
strtoupper( string $string )
Make a string uppercase
$string
substr( string $string , integer $start , integer $length null )
Get part of string
$string
$start
$length
optional null substrCount( string $haystack , string $needle )
Count the number of substring occurrences
$haystack
$needle
utf8( string $string )
Converts a multibyte character string to the decimal value of the character
$string
© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
http://api.cakephp.org/2.8/class-Multibyte.html