file_put_contents实现内容追加

file_put_contents("test.txt", "This is another something.", FILE_APPEND);

FILE_APPEND:在文件末尾以追加的方式写入数据

猜你喜欢

转载自www.cnblogs.com/jiangshiguo/p/10945473.html