Method: f::nice_size

Converts an integer size into a human readable format

Info

Syntax

f::nice_size($size)

Parameters

Return (string)

Example


$nice_size = f::nice_size(1231939);
// nice size is: 1,2 MB