= 1048576) { return round($bytes / 1048576, 1) . ' МБ'; } if ($bytes >= 1024) { return round($bytes / 1024, 1) . ' КБ'; } return $bytes . ' Б'; } }