Folder::__toString()

Proxy for the current object, casted as a string.

Table of Contents
  1. Description
  2. Example

Description

Folder::__toString(): string;

This method will be called when you cast a Folder instance as a string.

Example

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

echo $folder; // Returns `'.\path\to\folder'` if folder exists

Folder::__toString()

Proxy for the current object, casted as a string.

Folder::size()

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