PHP: __sleep() Magic Method
The __sleep() method returns an array of names of the variables of an object, which should be kept when the object is serialized. NOTE The __sleep() method returns an array of strings. The strings in the array are the name of the variables of the class. WARNING If the returned array from the __sleep() method … Read more