Skip to content

Kirby 3.5.7.1

F::niceSize()

Converts an integer size into a human readable format

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

Parameters

Name Type Default Description
$size * mixed The file size or a file path
$locale string|null|false null Locale for number formatting,
null for the current locale,
false to disable number formatting

Return type

string

Parent class

Kirby\Toolkit\F