复制代码 代码如下: $arrInsert = insertContent(“array.php”, “abcdef”, 3, 10); unlink(“array.php”); foreach($arrInsert as $value) { file_put_contents(“array.php”, $value, FILE_APPEND); } function insertContent($source, $s, $iLine, $index) { $file_handle = fope