Is there any way to pass an array between two pages intact?
I am building a huge array, and the building of it uses masses of memmory. I would like to be able to store the array intact and then reaccess it from another page?
If I use $x = print_r($array,true); and write it to a file, how could I then rebuild it into an array, or is there a better way altogether.
You can store it in session ( not sure how big it is ) .. if you want to write to file .. you can do something like this:
and then just include that file like a normal file on next page loads.