Hello Sitepointers,

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.