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