Downloads
Documentation
Get Involved
Help
Search docs
PHP 8.1.31 Released!
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Enumerations
Errors
Exceptions
Fibers
Generators
Attributes
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Predefined Attributes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Session Security
Filesystem Security
Database Security
Error Reporting
User Submitted Data
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
GUI Extensions
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
Introduction »
« intl_is_failure
PHP Manual
Function Reference
Human Language and Character Encoding Support
Change language:
English
German
Spanish
French
Italian
Japanese
Brazilian Portuguese
Russian
Turkish
Ukrainian
Chinese (Simplified)
Other
Multibyte String
Introduction
Installing/Configuring
Installation
Runtime Configuration
Predefined Constants
Summaries of supported encodings
Basics of Japanese multi-byte encodings
HTTP Input and Output
Supported Character Encodings
Function Overloading Feature
PHP Character Encoding Requirements
Multibyte String Functions
mb_check_encoding
— Check if strings are valid for the specified encoding
mb_chr
— Return character by Unicode code point value
mb_convert_case
— Perform case folding on a string
mb_convert_encoding
— Convert a string from one character encoding to another
mb_convert_kana
— Convert "kana" one from another ("zen-kaku", "han-kaku" and more)
mb_convert_variables
— Convert character code in variable(s)
mb_decode_mimeheader
— Decode string in MIME header field
mb_decode_numericentity
— Decode HTML numeric string reference to character
mb_detect_encoding
— Detect character encoding
mb_detect_order
— Set/Get character encoding detection order
mb_encode_mimeheader
— Encode string for MIME header
mb_encode_numericentity
— Encode character to HTML numeric string reference
mb_encoding_aliases
— Get aliases of a known encoding type
mb_ereg
— Regular expression match with multibyte support
mb_ereg_match
— Regular expression match for multibyte string
mb_ereg_replace
— Replace regular expression with multibyte support
mb_ereg_replace_callback
— Perform a regular expression search and replace with multibyte support using a callback
mb_ereg_search
— Multibyte regular expression match for predefined multibyte string
mb_ereg_search_getpos
— Returns start point for next regular expression match
mb_ereg_search_getregs
— Retrieve the result from the last multibyte regular expression match
mb_ereg_search_init
— Setup string and regular expression for a multibyte regular expression match
mb_ereg_search_pos
— Returns position and length of a matched part of the multibyte regular expression for a predefined multibyte string
mb_ereg_search_regs
— Returns the matched part of a multibyte regular expression
mb_ereg_search_setpos
— Set start point of next regular expression match
mb_eregi
— Regular expression match ignoring case with multibyte support
mb_eregi_replace
— Replace regular expression with multibyte support ignoring case
mb_get_info
— Get internal settings of mbstring
mb_http_input
— Detect HTTP input character encoding
mb_http_output
— Set/Get HTTP output character encoding
mb_internal_encoding
— Set/Get internal character encoding
mb_language
— Set/Get current language
mb_lcfirst
— Make a string's first character lowercase
mb_list_encodings
— Returns an array of all supported encodings
mb_ltrim
— Strip whitespace (or other characters) from the beginning of a string
mb_ord
— Get Unicode code point of character
mb_output_handler
— Callback function converts character encoding in output buffer
mb_parse_str
— Parse GET/POST/COOKIE data and set global variable
mb_preferred_mime_name
— Get MIME charset string
mb_regex_encoding
— Set/Get character encoding for multibyte regex
mb_regex_set_options
— Set/Get the default options for mbregex functions
mb_rtrim
— Strip whitespace (or other characters) from the end of a string
mb_scrub
— Replace ill-formed byte sequences with the substitute character
mb_send_mail
— Send encoded mail
mb_split
— Split multibyte string using regular expression
mb_str_pad
— Pad a multibyte string to a certain length with another multibyte string
mb_str_split
— Given a multibyte string, return an array of its characters
mb_strcut
— Get part of string
mb_strimwidth
— Get truncated string with specified width
mb_stripos
— Finds position of first occurrence of a string within another, case insensitive
mb_stristr
— Finds first occurrence of a string within another, case insensitive
mb_strlen
— Get string length
mb_strpos
— Find position of first occurrence of string in a string
mb_strrchr
— Finds the last occurrence of a character in a string within another
mb_strrichr
— Finds the last occurrence of a character in a string within another, case insensitive
mb_strripos
— Finds position of last occurrence of a string within another, case insensitive
mb_strrpos
— Find position of last occurrence of a string in a string
mb_strstr
— Finds first occurrence of a string within another
mb_strtolower
— Make a string lowercase
mb_strtoupper
— Make a string uppercase
mb_strwidth
— Return width of string
mb_substitute_character
— Set/Get substitution character
mb_substr
— Get part of string
mb_substr_count
— Count the number of substring occurrences
mb_trim
— Strip whitespace (or other characters) from the beginning and end of a string
mb_ucfirst
— Make a string's first character uppercase
Improve This Page
Learn How To Improve This Page
•
Submit a Pull Request
•
Report a Bug
+
add a note
User Contributed Notes
There are no user contributed notes for this page.
↑
and
↓
to navigate •
Enter
to select •
Esc
to close
Press
Enter
without selection to search using Google