Find the size of the given file.
Parameters | |||
---|---|---|---|
string
|
$file |
The file name (file must exist) |
# |
int
|
$digits = 2 |
Number of precisions |
# |
array
|
$sizes = ["MB", "KB", "B"] |
Array of size units, e.g., array("TB","GB","MB","KB","B"). Default is array("MB","KB","B") |
# |
Returns | |
---|---|
string|bool
|
The size unit (B, KiB, MiB, GiB, TiB, PiB, EiB, ZiB, YiB) or |