小白教程
所有教程
关于
Search
172.69.6.208
172.69.6.208
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Func string convert cyr string”的源代码
本页内容
上一节:
Func_string_chunk_split
下一节:
Func_string_convert_uudecode
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:convert_cyr_string()}}[[Category:PHP字符串函数参考手册|7]] = PHP convert_cyr_string() 函数 = [[:分类:PHP字符串函数参考手册]] 把字符串由一种字符集转换成另一种: <sample title="" desc="" lang="php" hererun="1"> <?php $str = "Hello world! æøå"; echo $str . "<br>"; echo convert_cyr_string($str,'w','a'); ?> </sample> == 定义和用法 == convert_cyr_string() 函数把字符串由一种 Cyrillic 字符集转换成另一种。 被支持的 Cyrillic 字符集是: * k - koi8-r * w - windows-1251 * i - iso8859-5 * a - x-cp866 * d - x-cp866 * m - x-mac-cyrillic '''注释:'''该函数是二进制安全的。 == 语法 == <pre> convert_cyr_string(string,from,to) </pre> {| class="table table-striped table-hover" ! 参数 ! 描述 |- | string | 必需。规定要转换的字符串。 |- | from | 必需。一个规定了源 Cyrillic 字符集的字符。 |- | to | 必需。一个规定了目标 Cyrillic 字符集的字符。 |} == 技术细节 == {| class="table table-striped table-hover" | 返回值: | 返回已转换的字符串。 |- | PHP 版本: | 4+ |} [[:分类:PHP字符串函数参考手册]]
返回至“
Func string convert cyr string
”。
上一节:
Func_string_chunk_split
下一节:
Func_string_convert_uudecode