Methods summary
public
|
|
public static
|
#
sanitize( $text )
replaces invalid UTF-8 characters with blanks
|
public
|
#
convert( $string, $encoding = NULL, $destination = 'UTF-8' )
Convert a foreign charset encoding from or to UTF-8
Convert a foreign charset encoding from or to UTF-8
|
public static
|
#
detect( $string )
Detect the encoding of the string
Detect the encoding of the string
|
public static
|
#
strlen( $str )
Determine the number of characters of a string
Compatible with mb_strlen(), an UTF-8 friendly replacement for strlen()
Determine the number of characters of a string
Compatible with mb_strlen(), an UTF-8 friendly replacement for strlen()
|
public static
|
#
substr_count( $haystack, $needle )
Count the number of substring occurances
Compatible with mb_substr_count(), an UTF-8 friendly replacement for substr_count()
Count the number of substring occurances
Compatible with mb_substr_count(), an UTF-8 friendly replacement for substr_count()
|
public static
|
#
substr( $str, $start, $length = NULL )
Return part of a string, length and offset in characters
Compatible with mb_substr(), an UTF-8 friendly replacement for substr()
Return part of a string, length and offset in characters
Compatible with mb_substr(), an UTF-8 friendly replacement for substr()
|
public static
|
#
strcut( $str, $start, $length = NULL )
Return part of a string, length and offset in bytes
Compatible with mb_strcut()
Return part of a string, length and offset in bytes
Compatible with mb_strcut()
|
public static
|
#
strwidth( $str )
Determine the width of a string
Compatible with mb_strwidth()
Determine the width of a string
Compatible with mb_strwidth()
|
public static
|
#
strimwidth( $str, $start, $width, $trimmarker = '' )
Get truncated string with specified width
Compatible with mb_strimwidth()
Get truncated string with specified width
Compatible with mb_strimwidth()
|
public static
|
#
strrpos( $haystack, $needle )
Find position of last occurance of a string in another string
Compatible with mb_strrpos(), an UTF-8 friendly replacement for strrpos()
Find position of last occurance of a string in another string
Compatible with mb_strrpos(), an UTF-8 friendly replacement for strrpos()
|
public static
|
#
strpos( $haystack, $needle, $offset = 0 )
Find position of first occurance of a string in another string
Compatible with mb_strpos(), an UTF-8 friendly replacement for strpos()
Find position of first occurance of a string in another string
Compatible with mb_strpos(), an UTF-8 friendly replacement for strpos()
|
public static
|
#
strtolower( $str )
Convert a string to lower case
Compatible with mb_strtolower(), an UTF-8 friendly replacement for strtolower()
Convert a string to lower case
Compatible with mb_strtolower(), an UTF-8 friendly replacement for strtolower()
|
public static
|
#
strtoupper( $str )
Convert a string to upper case
Compatible with mb_strtoupper(), an UTF-8 friendly replacement for strtoupper()
Convert a string to upper case
Compatible with mb_strtoupper(), an UTF-8 friendly replacement for strtoupper()
|
public static
|
#
send_mail( $to, $subject, $message, $additional_headers = '', $additional_parameter = '' )
Send mail
Replacement for mb_send_mail(), an UTF-8 friendly replacement for mail()
Send mail
Replacement for mb_send_mail(), an UTF-8 friendly replacement for mail()
|
public static
|
#
encode_javascript( $string )
Prepare an UTF-8 string for use in JavaScript
Prepare an UTF-8 string for use in JavaScript
|
public static
|
#
encode_numericentity( $string )
Encode an UTF-8 string with numeric entities
Simplied replacement for mb_encode_numericentity()
Encode an UTF-8 string with numeric entities
Simplied replacement for mb_encode_numericentity()
|