Page 1 of 1

How to Cache variable value?

Posted: Wed Nov 03, 2010 3:37 pm
by aceSpec
Hey,

Im trying to do some caching in PHP and I have not clue what to do. I have a function that returns an array of XML objects. I want to cache this array and then access it later on.

Any ideas?

Re: How to Cache variable value?

Posted: Wed Nov 03, 2010 5:35 pm
by Benjamin
Research the serialize, file_put_contents and file_get_contents functions on php.net.