strtr(string,from,to)
用于翻译字符或替换子字符串
Sr.No | 参数 & Description |
---|---|
1 |
string 它指定输入字符串 链接:https://www.learnfk.comhttps://www.learnfk.com/php/php-function-strtr.html 来源:LearnFk无涯教程网 |
2 |
from 它指定要更改的字符 |
3 |
to 它指定要更改的字符 into |
它返回翻译后的字符串
<?php echo strtr("Hilla Warld","ia","eo"); ?>
这将产生以下输出-
Hello World
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)