php 文件追加写入

//追加写入

 file_put_contents('xml.text',json_encode($postObj,JSON_FORCE_OBJECT).PHP_EOL,FILE_APPEND);
原文地址:https://www.cnblogs.com/huay/p/11578851.html