- round: documentation ( source)
- print_r: documentation ( source)
- date: documentation ( source)
<?php
echo date('Y-m-d\TH:i:sP');
$nextbid = 100;
$bidmax = 300;
$percent = 15;
while($nextbid <= $bidmax ) {
$nextbid = (($nextbid*$percent/100)+$nextbid);
echo '\n';
print_r($nextbid);
}
$nextbid = round($nextbid/2, 0)* 2;
print_r($nextbid);