Some time ago in the development of micro-channel public platform, we plan to use session temporarily store data query, but it is not a perfect public platform browser can not store COOKIE, can not save the session_id, that is, not take session. Ever since the use serialize () function to an array written to the file, when we need to use this array will read the file out and then use unserialize () to an array.
Writes an array of file functions
1 |
|
Conversion to read the file into an array
Big Box
PHP using serialize the array to save the file
lass = "highlight php">
1 |
|
Note: The article may be many mistakes, and there may be cases unusable occurs because the technology blog is my study notes, I just record some of the see or think of something, so I do not recommend you to just follow the content of the blog post use. Thank you ~ ~