Folder::__serialize()

Provides data to be serialized.

Table of Contents
  1. Description
  2. Example

Description

Folder::__serialize(): array;

This method will be called when a Folder instance is serialized using the built-in PHP serialize() function.

Example

$folder = new Folder('.\path\to\folder');

echo serialize($folder); // Returns `'O:6:"Folder":1:{s:4:"path";s:16:".\path\to\folder";}'`

Folder::__serialize()

Provides data to be serialized.

Folder::size()

Gets the total sizes of files contained in the folder in human readable string format.