Skip to content

Kirby 3.9.8

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
$size * array|string|int The file size, a file path or array of paths
$locale string|false|null null Locale for number formatting,
null for the current locale,
false to disable number formatting

Return type

string

Parent class

Kirby\Filesystem\F