Page MenuHomePhabricator

function phutil_format_bytes($bytes)
Arcanist Technical Documentation ()

Format a byte count for human consumption, e.g. "10MB" instead of "10485760".

Parameters
int$bytesNumber of bytes.
Return
stringHuman-readable description.