File::__construct()

The constructor.

Table of Contents
  1. Description
  2. Example

Description

File::__construct(?string $path = null): self;

This method will be called when you instantiate a File class.

Example

$file = new File('.\path\to\file.txt');

File::__construct()

The constructor.

File::size()

Gets the file sizes in human readable string format.