File path: dist/twist/Core/Utilities/File.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
bytesToSize
— Convert bytes to a human readable size for example 1536 would be converted to 1.5KB
Name | Description |
---|---|
$intBytes | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$intBytes = 124;
//Call the function bytesToSize with the example vars
Twist::File() -> bytesToSize($intBytes);