Method: f::size

Returns the size of a file.

Info

Syntax

f::size($file, $nice=false)

Parameters

Return (mixed)

Example


$size = f::size('/var/www/test.txt');
// size is ie: 1231939

$size = f::size('/var/www/test.txt', true);
// size is ie: 1,2 MB