把PHP陣列轉成JSON字串. $json_string = json_encode($data);. // 寫入檔案. file_put_contents('test.json', $json_string); ?> 有同名的JSON 檔案則 ...
確定! 回上一頁