<?php $pricePerDay = 800; $days = range(1,20); foreach ($days as $day) { $price = ($day * $pricePerDay); echo sprintf('Dag: %s, Pris: %s \n', $day, $price); }
You have javascript disabled. You will not be able to edit any code.