Less than 1 minute
str_bytes
Byte to string formatter.
public str_bytes({Array})
Formats an integer representing a size in bytes to a human readable string representation.
Parameters
Parameter | Type | Description |
---|---|---|
$bytes | int | the byte value to convert to a string |
$type | string | The type to convert to. Type can be: |
* B (bytes)
* K (kilobytes)
* M (megabytes)
* G (giabytes)
* T (terrabytes) |
| $precision
| int
| the number of decimal places to show | | $exclude_suffix
| bool
| if true, the suffix will not be included in the output |
Generated by Hazaar API Doc Generator