Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $arrayData = json_decode($jsonData, true);
- $csvFileName = 'reports.csv';
- $fp = fopen($csvFileName, 'w');
- foreach($arrayData as $row){
- fputcsv($fp, $row);
- }
- fclose($fp);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement