function byte_format($size, $dec=2){<br>
$a = array("B", "KB", "MB", "GB", "TB", "PB");<br>
$pos = 0;<br>
while ($size >= 1024) {<br>
$size /= 1024;<br>
$pos++;<br>
}<br>
return round($size,$dec)." ".$a[$pos];<br>
}
AD:真正免费,域名+虚机+企业邮箱=0元