【问题标题】:Convert to uppercase Cyrillic转换为大写西里尔字母
【发布时间】:2018-06-03 14:33:16
【问题描述】:

我需要将西里尔文字符串转换为大写。找不到函数 mb_strtouppe。

 Call to undefined function mb_strtoupper()

我该怎么做?

如何更改西里尔字母的大写?

【问题讨论】:

标签: php utf-8 cyrillic


【解决方案1】:

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 the

system, --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 of

PHP 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 .

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-11-09
    • 1970-01-01
    • 2016-08-05
    • 2011-06-11
    相关资源
    最近更新 更多