The Symfony Polyfill / Mbstring Component¶
This component provides a partial, native PHP implementation for thembstringPHP 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_encodingmb_chrmb_convert_casemb_convert_encodingmb_convert_variablesmb_decode_mimeheadermb_decode_numericentitymb_detect_encodingmb_detect_ordermb_encode_mimeheadermb_encode_numericentitymb_encoding_aliasesmb_get_infomb_http_inputmb_http_outputmb_internal_encodingmb_languagemb_list_encodingsmb_ordmb_output_handlermb_parse_strmb_scrubmb_striposmb_stristrmb_strlenmb_strposmb_strrchrmb_strrichrmb_strriposmb_strrposmb_strstrmb_strtolowermb_strtouppermb_strwidthmb_substitute_charactermb_substr_countmb_substr