1
<?php $l=array('','K','M','G','T','P','E','Z','Y','?');$b=$argv[1];for(;$b>=1024;++$i){$b/=1024;}echo $b,$l[$i];