Voting

: seven minus three?
(Example: nine)

The Note You're Voting On

Viitala
17 years ago
Beware of empty files!

<?php

// Wrong
$exp = floor(log($bytes) / log(1024));

//Correct
$exp = $bytes ? floor(log($bytes) / log(1024)) : 0;

?>

<< Back to user notes page

To Top