PHP: __sleep() Magic Method
Summary Method Name __sleep() Type Magic Method Access Modifier public Parameters None Return Type array Purpose/Usage Returns an array of the property names of the classwhich should be included when an object of that class is serialized When Invoked Automatically invoked by the serialize() method. Limitations Can not serialize resource. Signature public function __sleep(): array … Read more