Erb*_*ica 10
您需要打开文件进行编辑,寻找所需的位置,然后写入文件,例如:
<?php
$file = fopen($filename, "c");
fseek($file, -3, SEEK_END);
fwrite($file, "whatever you want to write");
fclose($file);
?>
Run Code Online (Sandbox Code Playgroud)
在php.net上进一步参考- fseek doc
希望有所帮助.