static void detect(
$string
)
|
|
Detect the encoding of the string
Parameters:
static void encode_javascript(
$string
)
|
|
Prepare an UTF-8 string for use in JavaScript
Parameters:
static void encode_mimeheader(
$str
)
|
|
Encode a string for use in a MIME header
Simplied replacement for mb_encode_mimeheader()
Parameters:
static void encode_numericentity(
$string
)
|
|
Encode an UTF-8 string with numeric entities
Simplied replacement for mb_encode_numericentity()
Parameters:
static void sanitize(
$text
)
|
|
replaces invalid UTF-8 characters with blanks
Parameters:
static void send_mail(
$to,
$subject,
$message, [
$additional_headers = ''], [
$additional_parameter = '']
)
|
|
Send mail
Replacement for mb_send_mail(), an UTF-8 friendly replacement for mail()
Parameters:
|
$to: |
|
|
$subject: |
|
|
$message: |
|
|
$additional_headers: |
|
|
$additional_parameter: |
|
static void strcut(
$str,
$start, [
$length = NULL]
)
|
|
Return part of a string, length and offset in bytes
Compatible with mb_strcut()
Parameters:
static void strimwidth(
$str,
$start,
$width, [
$trimmarker = '']
)
|
|
Get truncated string with specified width
Compatible with mb_strimwidth()
Parameters:
|
$str: |
|
|
$start: |
|
|
$width: |
|
|
$trimmarker: |
|
static void strlen(
$str
)
|
|
Determine the number of characters of a string
Compatible with mb_strlen(), an UTF-8 friendly replacement for strlen()
Parameters:
static void 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()
Parameters:
|
$haystack: |
|
|
$needle: |
|
|
$offset: |
|
static void 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()
Parameters:
static void strtolower(
$str
)
|
|
Convert a string to lower case
Compatible with mb_strtolower(), an UTF-8 friendly replacement for strtolower()
Parameters:
static void strtoupper(
$str
)
|
|
Convert a string to upper case
Compatible with mb_strtoupper(), an UTF-8 friendly replacement for strtoupper()
Parameters:
static void strwidth(
$str
)
|
|
Determine the width of a string
Compatible with mb_strwidth()
Parameters:
static void 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()
Parameters:
static void substr_count(
$haystack,
$needle
)
|
|
Count the number of substring occurances
Compatible with mb_substr_count(), an UTF-8 friendly replacement for substr_count()
Parameters:
void convert(
$string, [
$encoding = NULL], [
$destination = 'UTF-8']
)
|
|
Convert a foreign charset encoding from or to UTF-8
Parameters:
|
$string: |
|
|
$encoding: |
|
|
$destination: |
|