wireBytesStr() function
Given a quantity of bytes (int), return readable string that refers to quantity in bytes, kB, MB, GB and TB
Please note this method is and thus not intended to be called directly.
Internal usage
// basic internal usage
$string = wireBytesStr(int $bytes);
// internal usage with all arguments
$string = wireBytesStr(int $bytes, $small = false, $options = array);
Arguments
Name | Type(s) | Description |
---|---|---|
$bytes | int | Quantity in bytes |
$small (optional) | bool int array | Make returned string as small as possible? Default:false
|
$options (optional) | array int | Options to modify default behavior, or if an integer then
|
Return value
string
Functions methods and properties
API reference based on ProcessWire core version 3.0.251