We start with a simple HTML table:
<table class="sortable">
<tbody>
<tr data-id="1">
<td>Some content</td>
<?php | |
function humanFileSize($size, $german = true) { | |
$fileSizePrefixes = array('k', 'M', 'G', 'T', 'P'); | |
$size = intval($size); | |
$prefix = -1; | |
while($size > 1024 / 5 && $prefix < count($fileSizePrefixes) - 1) { | |
$size /= 1024; |