Results 1 to 3 of 3
Mar 15, 2013, 20:24 #1
- Join Date
- May 2005
- Thessaloniki, Greece
- 0 Post(s)
- 0 Thread(s)
Dump an array to a file, instead of displaying it
Long time no see. Well, for my latest project I have read a pretty big .json file (~18 MB) to an array using json_decode(). Not only it's big but also pretty nested (around 8 levels).
For obvious reasons if I try var_dump() the browser freezes for quite some time, but eventually displays the dump.
I have to do this to another 10 or so (big) files. Is it possible to save the array to a text file instead of displaying it to the browser? I want them saved for future reference as I develop the app.
Thanks in advance for your time.Don't Drink & Surf The Net