in PHP by
Q:

What's the difference between __sleep and __wakeup?

▼ Show 1 Answer

0 votes
by

__sleep returns the array of all the variables that need to be saved, while __wakeup retrieves them.

Learn More with Madanswer

Related questions

0 votes
asked Jun 23, 2019 in PHP by SakshiSharma
...