转换为大写西里尔字母

时间:2018-06-03 14:33:16

标签: php utf-8 cyrillic

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

 Call to undefined function mb_strtoupper()

我该怎么做?

我如何在西里尔语中改变大写?

1 个答案:

答案 0 :(得分:0)

mbstring是PHP扩展,默认情况下未启用。 docs说:

  

mbstring是非默认扩展名。这意味着它未启用   默认。您必须使用configure显式启用该模块   选项。有关详细信息,请参阅“安装”部分。

     

以下配置选项与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
     

系统, - 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 .
相关问题