PHP 教程
把字符串由一種字符集轉(zhuǎn)換成另一種:
convert_cyr_string() 函數(shù)把字符串由一種 Cyrillic 字符集轉(zhuǎn)換成另一種。
被支持的 Cyrillic 字符集是:
注釋:該函數(shù)是二進制安全的。
參數(shù) | 描述 |
---|---|
string | 必需。規(guī)定要轉(zhuǎn)換的字符串。 |
from | 必需。一個規(guī)定了源 Cyrillic 字符集的字符。 |
to | 必需。一個規(guī)定了目標(biāo) Cyrillic 字符集的字符。 |
返回值: | 返回已轉(zhuǎn)換的字符串。 |
---|---|
PHP 版本: | 4+ |