最简单的方法是写入4个换行和4个空格,再写入。型局锋测试代码如下:
$str = 'abcdefghijklmoapq';$fp = fopen(dirname(__FILE__) . '/testFile.txt', 腊蔽'a+');fwrite($fp, "\r\n\r\n\r\n\r\n 卜晌 ");fwrite($fp, $str);fclose($fp);