Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $data_to_file = json_encode($array_to_return[0],JSON_UNESCAPED_UNICODE,JSON_FORCE_OBJECT);
- $data_to_file = iconv("UTF-8","WINDOWS-1255",$data_to_file);
- $file = 'file.txt';
- $handle = fopen($file, 'w') or die();
- fwrite($handle, $data_to_file);
Add Comment
Please, Sign In to add comment