Page MenuHomePhabricator

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$bytesNumber of bytes.
Return
stringHuman-readable description.