The Symfony Polyfill / Mbstring Component¶
This component provides a partial, native PHP implementation for thembstring
PHP extension.
Installation¶
1 | $ composer require symfony/polyfill-mbstring
|
注釈
If you install this component outside of a Symfony application, you must
require the vendor/autoload.php
file in your code to enable the class
autoloading mechanism provided by Composer. Read
this article for more details.
Usage¶
Once this component is installed in your application, you can use the following constants and functions, no matter if the PHP mbstring extension is installed or not in your server.
Provided Constants¶
MB_CASE_UPPER
(value =0
)MB_CASE_LOWER
(value =1
)MB_CASE_TITLE
(value =2
)
Provided Functions¶
mb_check_encoding
mb_chr
mb_convert_case
mb_convert_encoding
mb_convert_variables
mb_decode_mimeheader
mb_decode_numericentity
mb_detect_encoding
mb_detect_order
mb_encode_mimeheader
mb_encode_numericentity
mb_encoding_aliases
mb_get_info
mb_http_input
mb_http_output
mb_internal_encoding
mb_language
mb_list_encodings
mb_ord
mb_output_handler
mb_parse_str
mb_scrub
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_count
mb_substr