函数源码: /** byte字节单位转换函数 * @param int $byte * @return string */ function byte(int $byte){ $suffixes=["YB","ZB","EB","PB","TB","GB","MB","KB"]; do{ $byte=round($byte/1024,2); $suffix=array_pop($suffixes); }while($byte>=1024&&!em