Last active
May 19, 2020 17:02
-
-
Save pointofpresence/cdae221bc7457bbc0f59767427bb26e4 to your computer and use it in GitHub Desktop.
Save JSON to file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$fp = fopen('results.json', 'w'); | |
fwrite($fp, json_encode($response, JSON_UNESCAPED_UNICODE)); | |
fclose($fp); | |
// or file_put_contents('results.json', json_encode($response, JSON_UNESCAPED_UNICODE)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment