简单教程
提交运行
代码编辑器:
<?php $arr = array("blue","red","green","yellow"); print_r(str_replace("red","pink",$arr,$i)); echo "Replacements: $i";
运行结果: