php 文件追加写入
//追加写入
file_put_contents('xml.text',json_encode($postObj,JSON_FORCE_OBJECT).PHP_EOL,FILE_APPEND);
- 上一篇 »Linux cat 多行写入文件防止变量替换
- 下一篇 »PHP二维数组追加修改二维数组数据
file_put_contents('xml.text',json_encode($postObj,JSON_FORCE_OBJECT).PHP_EOL,FILE_APPEND);