【发布时间】:2018-06-03 14:33:16
【问题描述】:
我需要将西里尔文字符串转换为大写。找不到函数 mb_strtouppe。
Call to undefined function mb_strtoupper()
我该怎么做?
如何更改西里尔字母的大写?
【问题讨论】:
我需要将西里尔文字符串转换为大写。找不到函数 mb_strtouppe。
Call to undefined function mb_strtoupper()
我该怎么做?
如何更改西里尔字母的大写?
【问题讨论】:
mbstring 是一个 PHP 扩展,默认不启用。 docs 说:
mbstring 是一个非默认扩展名。这意味着它未被启用 默认。您必须使用配置显式启用模块 选项。有关详细信息,请参阅安装部分。
以下配置选项与 mbstring 模块有关。
--enable-mbstring : Enable mbstring functions. This option is required to use mbstring functions. libmbfl is necessary for mbstring. libmbfl is bundled with mbstring. Before PHP 7.3.0, if libmbfl is already installed on thesystem, --with-libmbfl[=DIR] 可以指定使用已安装的 图书馆。
--disable-mbregex : Disable regular expression functions with multibyte character support. Oniguruma is necessary for the regular expression functions with multibyte character support. Oniguruma is bundled with mbstring. As ofPHP 5.4.0,如果系统上已经安装了 Oniguruma, --with-onig[=DIR] 可以指定使用已安装的库。
As of PHP 5.4.0 it is possible to disable the multibyte regex backtrack check by specifying --disable-mbregex-backtrack .
【讨论】: