How Do I round a number to its nearest thousand?
function round($var) { // Round it }
Just a small change, may help to round up!
$x = ceil(220.20 / 1000) * 1000; echo $x;