创建txt文件并写入内容 Thinkphp6
2023-03-31 14:09775
//创建txt文件并写入内容 public function RobotIdFileWrite($new_data='bg0') { $path = './easywechat.txt'; if(!file_exists($path)){ $myfile = fopen($path, "w"); } file_put_contents($path, json_encode($new_data)); }
上一篇: PHP换行符转br