tags:

views:

24

answers:

1
+1  Q: 

Generate jSon file

How to generate jSon file via PHP?

I have seen jSon files over 4mb and more.

I think tt's very good practice to keep such big data cached than taken from database everytime.

And update it one a week or a day.

Thanks

A: 

The JSON facilities can be used to read and write JSON.

Ignacio Vazquez-Abrams
So we encode data into jSon format and then by using fopen and fwrite functions , creating .json file?
Beck
That is correct.
Ignacio Vazquez-Abrams