简单教程
提交运行
代码编辑器:
<?php $replace = array("1: AAA","2: AAA","3: AAA"); echo implode("<br>",substr_replace($replace,'BBB',3,3));
运行结果: