$number = ceil($input / 10) * 10;
function roundDown($number, $nearest){
return $number - fmod($number, $nearest);
}
var_dump(roundDown(7.778, 0.5));
var_dump(roundDown(7.501, 0.5));
var_dump(roundDown(7.49, 0.5));
var_dump(roundDown(7.1, 0.5));
<?php
$price =3206250;
$bolish = $price / 1000000;
$natija = ceil($bolish); // 4
echo $natija *1000000;