I have foreach loop in which I need to assign coordinates after certain steps. For this example $n+4 (174,178,182,...).
I know that solve multiple entering n++.
$n = 174;
foreach($items as $item){
echo $item . ' coor: ' . $n . '<br>';
$n++;
$n++;
$n++;
$n++;
}
I wonder if it can not be solved more elegantly.