PHP convert_cyr_string()函数讲解
作者:php参考手册 时间:2023-06-05 00:43:42
PHP convert_cyr_string() 函数
实例
把字符串由一种字符集转换成另一种:
<?php
$str = "Hello world! æøå";
echo $str . "<br>";
echo convert_cyr_string($str,'w','a');
?>
定义和用法
convert_cyr_string()
函数把字符串由一种 Cyrillic 字符集转换成另一种。
被支持的 Cyrillic 字符集是:
k - koi8-r
w - windows-1251
i - iso8859-5
a - x-cp866
d - x-cp866
m - x-mac-cyrillic
注释: 该函数是二进制安全的。
语法
convert_cyr_string( _string,from,to_ )
标签:php,convert,cyr,string(),函数
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
python中__call__方法示例分析
2023-01-16 04:31:31
ubuntu中python调用C/C++方法之动态链接库详解
2023-09-07 19:15:55
Python WEB应用部署的实现方法
2022-02-18 07:34:35
![](https://img.aspxhome.com/file/2023/7/127687_0s.png)
Java timezone设置和mybatis连接数据库时区设置方式
2024-01-24 09:43:18
![](https://img.aspxhome.com/file/2023/5/99735_0s.png)
安装Mysql5.7.10 winx64出现的几个问题汇总
2024-01-28 13:16:04
python 常见的排序算法实现汇总
2023-09-17 13:47:24
![](https://img.aspxhome.com/file/2023/9/131459_0s.png)
网页栅格系统研究(3):粒度问题
2008-10-28 19:46:00
![](https://img.aspxhome.com/file/UploadPic/200810/28/2008102819524130s.png)
python自动化测试之如何解析excel文件
2022-08-28 08:24:36
Python列表的定义及使用
2023-08-02 03:38:32
![](https://img.aspxhome.com/file/2023/9/61759_0s.png)
python爬虫之模拟登陆csdn的实例代码
2021-05-04 22:49:47
详解go语言json的使用技巧
2023-09-12 10:27:48
用python代码做configure文件
2023-08-17 13:33:58
mysql 8.0.13 安装配置方法图文教程
2024-01-14 15:20:52
![](https://img.aspxhome.com/file/2023/4/115294_0s.png)
Go 并发实现协程同步的多种解决方法
2024-05-05 09:26:56
深入浅析Python获取对象信息的函数type()、isinstance()、dir()
2021-12-23 11:46:11
![](https://img.aspxhome.com/file/2023/3/121883_0s.png)
Node.js 和 Python之间该选择哪个?
2021-05-27 21:38:15
![](https://img.aspxhome.com/file/2023/0/128570_0s.png)
用户体验在商业利益面前什么都不是
2009-06-12 12:07:00
黄相如:如何做好用户体验
2008-06-04 17:34:00
Vue.directive 自定义指令的问题小结
2024-05-09 10:43:29
![](https://img.aspxhome.com/file/2023/1/126601_0s.png)
解析PyCharm集成GitLab代码仓的问题
2022-06-08 07:36:15
![](https://img.aspxhome.com/file/2023/1/109881_0s.png)