Skip to content

Kirby 6.0.1

F::niceSize()

Converts an integer size into a human readable format

F::niceSize(array|string|int $size, string|false|null $locale = null): string

Parameters

Name Type Default Description
$sizerequired arrayorstringorint no default value The file size, a file path or array of paths
$locale stringorfalseornull null Locale for number formatting, null for the current locale, false to disable number formatting

Return type

string

Parent class

Kirby\Filesystem\F