= 1024 && $f <4; $f++) { $size /= 1024; } return round($size, 2).$arr[$f]; } echo format_bytes(&#39;123456789&#39;); ?>