<?php $bytes = 1024 ** 5; for ($i = 0; ($bytes / 1024) > 0.9; $i++) { $bytes /= 1024; } echo round($bytes, 2).' '.['B', 'KB', 'MB', 'GB', 'TB'][$i];
You have javascript disabled. You will not be able to edit any code.