$media->niceSize()

Returns the size of the file in a human readable format.

  • return (string)

Example

echo $media->niceSize();
// i.e. 1.2 mb

Is something missing or incorrect? Edit this page on Github…