搜索文档
首页
HTML/CSS
JavaScript
服务端开发
Java教程
移动端
数据库
当前位置:
首页
服务端开发
PHP 教程
PHP 基础教程
源代码
清空
点击运行
<?php $my_str = 'If the facts do not fit the theory, change the facts.'; // 执行字符串替换 str_replace("facts", "truth", $my_str, $count); // 显示执行的更换次数 echo "文本被替换了$count次。"; ?>
运行结果