File
extends PlatformUtility
in package
Provides access to file utility functions.
Tags
Table of Contents
- size() : mixed
- Get the file size in bytes.
- sizeReadable() : string
- Get the file size in human readable format.
Methods
size()
Get the file size in bytes.
public
size(string|null $file) :
mixed
If the file provided is null, this function assumes size is 0.
Parameters
- $file : string|null
Tags
Return values
mixed —sizeReadable()
Get the file size in human readable format.
public
sizeReadable(int $bytes) :
string
If the file provided is null, this function assumes size is 0.
Parameters
- $bytes : int