PHP convert_cyr_string()函数讲解

作者:php参考手册 时间:2023-06-05 00:43:42 

PHP convert_cyr_string() 函数

实例

把字符串由一种字符集转换成另一种:


<?php
$str = "Hello world! &aelig;&oslash;&aring;";
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()函数讲解

PHP convert_cyr_string()函数讲解

标签:php,convert,cyr,string(),函数
0
投稿

猜你喜欢

  • 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
  • Java timezone设置和mybatis连接数据库时区设置方式

    2024-01-24 09:43:18
  • 安装Mysql5.7.10 winx64出现的几个问题汇总

    2024-01-28 13:16:04
  • python 常见的排序算法实现汇总

    2023-09-17 13:47:24
  • 网页栅格系统研究(3):粒度问题

    2008-10-28 19:46:00
  • python自动化测试之如何解析excel文件

    2022-08-28 08:24:36
  • Python列表的定义及使用

    2023-08-02 03:38:32
  • 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
  • Go 并发实现协程同步的多种解决方法

    2024-05-05 09:26:56
  • 深入浅析Python获取对象信息的函数type()、isinstance()、dir()

    2021-12-23 11:46:11
  • Node.js 和 Python之间该选择哪个?

    2021-05-27 21:38:15
  • 用户体验在商业利益面前什么都不是

    2009-06-12 12:07:00
  • 黄相如:如何做好用户体验

    2008-06-04 17:34:00
  • Vue.directive 自定义指令的问题小结

    2024-05-09 10:43:29
  • 解析PyCharm集成GitLab代码仓的问题

    2022-06-08 07:36:15
  • asp之家 网络编程 m.aspxhome.com