메소드 | 설명 | |
---|---|---|
numberToHumanSize ( integer | float $size, $precision = 1 ) : string | Formats the bytes in $size into a more understandable representation. |
$this->numberToHumanSize(123) => 123 Bytes $this->numberToHumanSize(1234) => 1.2 KB $this->numberToHumanSize(12345) => 12.1 KB $this->numberToHumanSize(1234567) => 1.2 MB $this->numberToHumanSize(1234567890) => 1.1 GB $this->numberToHumanSize(1234567890123) => 1.1 TB $this->numberToHumanSize(1234567, 2) => 1.18 MB