- round: documentation ( source)
- range: documentation ( source)
<?php
$usernumber = 18;
$myseries = range(0, 59, 5);
foreach($myseries as $num) {
echo $num.'<br />';
$chcek = round(18/5) * 5;
echo $check;
//if($usernumber is close to $num) {
// echo 'Matching number is '.$num;
//}
}