Organizational Research By

Surprising Reserch Topic

What’s the special meaning of __sleep and __wakeup using php?



asked Sep 13, 2013 in PHP by ashish singh
edited Sep 12, 2013
0 votes
14 views



Related Hot Questions

1 Answer

0 votes

__sleep returns the array of all the variables than need to be saved.
 __wakeup retrieves them.
__sleep() and __wakeup() run prior to serialize() and unserialize() respectively.

 

answered Sep 13, 2013 by ashish singh
edited Sep 12, 2013

...