divide by 1024, and you'll get KB

divide again by 1024 and you'll get MB

same for GB, TB, etc

On 7/25/06, weetat <[EMAIL PROTECTED]> wrote:
Hi all ,

  I have data which have value in bytes for example ,

    $bytes = 33554432;

   How to convert this to MB ?

THanks

  - weetat (PHP Novice)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to