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
简介 »
« intl_is_failure
PHP 手册
函数参考
国际化与字符编码支持
切换语言:
English
German
Spanish
French
Italian
Japanese
Brazilian Portuguese
Russian
Turkish
Ukrainian
Chinese (Simplified)
Other
多字节字符串
简介
安装/配置
安装
运行时配置
预定义常量
支持编码的摘要
日文字符多字节编码基础
HTTP 输入和输出
支持的字符编码
函数重载功能
PHP字符编码的要求
多字节字符串 函数
mb_check_encoding
— 检查字符串在指定的编码里是否有效
mb_chr
— 按 Unicode 码位值返回字符
mb_convert_case
— 对字符串进行大小写转换
mb_convert_encoding
— 转换字符串,从一个字符编码到另一个字符编码
mb_convert_kana
— Convert "kana" one from another ("zen-kaku", "han-kaku" and more)
mb_convert_variables
— 转换一个或多个变量的字符编码
mb_decode_mimeheader
— 解码 MIME 头字段中的字符串
mb_decode_numericentity
— 根据 HTML 数字字符串解码成字符
mb_detect_encoding
— 检测字符的编码
mb_detect_order
— 设置/获取 字符编码的检测顺序
mb_encode_mimeheader
— 为 MIME 头编码字符串
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
— 获取 mbstring 的内部设置
mb_http_input
— 检测 HTTP 输入字符编码
mb_http_output
— 设置/获取 HTTP 输出字符编码
mb_internal_encoding
— 设置/获取内部字符编码
mb_language
— 设置/获取当前的语言
mb_lcfirst
— Make a string's first character lowercase
mb_list_encodings
— 返回所有支持编码的数组
mb_ltrim
— Strip whitespace (or other characters) from the beginning of a string
mb_ord
— 获取字符的 Unicode 码位值
mb_output_handler
— 在输出缓冲中转换字符编码的回调函数
mb_parse_str
— 解析 GET/POST/COOKIE 数据并设置全局变量
mb_preferred_mime_name
— 获取 MIME 字符串
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
— 发送编码过的邮件
mb_split
— 使用正则表达式分割多字节字符串
mb_str_pad
— Pad a multibyte string to a certain length with another multibyte string
mb_str_split
— 指定多字节字符串,返回其字符数组
mb_strcut
— 获取字符的一部分
mb_strimwidth
— 获取按指定宽度截断的字符串
mb_stripos
— 大小写不敏感地查找字符串在另一个字符串中首次出现的位置
mb_stristr
— 大小写不敏感地查找字符串在另一个字符串里的首次出现
mb_strlen
— 获取字符串的长度
mb_strpos
— 查找字符串在另一个字符串中首次出现的位置
mb_strrchr
— 查找指定字符在另一个字符串中最后一次的出现
mb_strrichr
— 大小写不敏感地查找指定字符在另一个字符串中最后一次的出现
mb_strripos
— 大小写不敏感地在字符串中查找一个字符串最后出现的位置
mb_strrpos
— 查找字符串在一个字符串中最后出现的位置
mb_strstr
— 查找字符串在另一个字符串里的首次出现
mb_strtolower
— 使字符串小写
mb_strtoupper
— 使字符串大写
mb_strwidth
— 返回字符串的宽度
mb_substitute_character
— 设置/获取替代字符
mb_substr
— 获取部分字符串
mb_substr_count
— 统计字符串出现的次数
mb_trim
— Strip whitespace (or other characters) from the beginning and end of a string
mb_ucfirst
— Make a string's first character uppercase
改进此页面
了解如何改进此页面
•
提交拉取请求
•
报告一个错误
+
添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
↑
and
↓
to navigate •
Enter
to select •
Esc
to close
Press
Enter
without selection to search using Google