- round: documentation ( source)
<?php
$prices = array(149, 199);
function price($price) {
$price = $price - ($price / 100 * 25);
return "Org: " . $price . "\tRounded: " . (round($price / 5) * 5) . "\n";
}
foreach ($prices as $price) {
echo price($price);
}