Guest User

Untitled

a guest
Dec 14th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. function convBytes($bytes) {
  2. if ($bytes > 1024) {
  3. $bytes = "$bytes / 1024";
  4. if ($bytes > 1024) {
  5. $bytes = "$bytes / 1024";
  6. if ($bytes > 1024) {
  7. $bytes = "$bytes / 1024";
  8. if ($bytes > 1024) {
  9. $bytes = "$bytes / 1024"." TB";
  10. } else {
  11. $bytes = "$bytes GB";}
  12. } else {
  13. $bytes = "$bytes MB";}
  14. } else {
  15. $bytes = "$bytes KB";}
  16. } else {
  17. $bytes = "$bytes Bytes";}
  18. }
Add Comment
Please, Sign In to add comment