1024000) { $pdfs[$mv[1]][$mv[2]][size] = round($pdfs[$mv[1]][$mv[2]][stat][size] / 1024000, 1); $pdfs[$mv[1]][$mv[2]][unit] = 'M'; } else if ($pdfs[$mv[1]][$mv[2]][stat][size] > 1024) { $pdfs[$mv[1]][$mv[2]][size] = round($pdfs[$mv[1]][$mv[2]][stat][size] / 1024, 0); $pdfs[$mv[1]][$mv[2]][unit] = 'K'; } else { $pdfs[$mv[1]][$mv[2]][size] = $pdfs[$mv[1]][$mv[2]][stat][size]; $pdfs[$mv[1]][$mv[2]][unit] = ''; } } } closedir($dh); } $years = array_keys($pdfs); rsort($years); ?>