rastaman46 Posted January 29, 2012 Share Posted January 29, 2012 Hello again How to convert size from taken from sql as the numbers and converted to MB in php? Quote Link to comment Share on other sites More sharing options...
Drummin Posted January 29, 2012 Share Posted January 29, 2012 Not sure if this is what you're looking for. $bytes = 1522265; $Mbytes = $bytes/1024; $Mbytes = number_format($Mbytes, 2, '.', ''); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.