function phutil_format_bytes($bytes)libphutil Technical Documentation (Core Utilities)
function phutil_format_bytes($bytes)
libphutil Technical Documentation (Core Utilities)
Format a byte count for human consumption, e.g. "10MB" instead of "10485760".
Parameters
int | $bytes | Number of bytes. |
Return
string | Human-readable description. |
- Defined
- src/utils/viewutils.php:79