Programming Language PHP

Namespace Plank\Mediable\Helpers

Class File

Method/Function readableSize

Total Examples 1

1 code examples of PHP Plank\Mediable\Helpers\File::readableSize extracted from open source projects

Was this example useful?
0
                                                    /**
     * Calculate the file size in human readable byte notation.
     * @param  int $precision (_optional_) Number of decimal places to include
     */
    public function readableSize(int $precision = 1): string
    {
        return File::readableSize($this->size, $precision);
    }