TwistPHP Documentation

bytesToSize

File path: dist/twist/Core/Utilities/File.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

bytesToSizeConvert bytes to a human readable size for example 1536 would be converted to 1.5KB

Parameters

Name Type Description
$intBytesintegern/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$intBytes 124;

//Call the function bytesToSize with the example vars
Twist::File() -> bytesToSize($intBytes);