Non-looping nice file size <?php function lanudry ($bytes) { $symbols = array("B", "KB", "MB", "GB", "TB"); $exp = floor( log($bytes) / log(1000) ); return sprintf('%.2f '.$symbol[$exp], ($bytes/pow(1000, floor($exp)))); } ?> Email ThisBlogThis!Share to TwitterShare to Facebook
0 comments:
Post a Comment