<?php $as = [0, 1, 2, 5, 7, 10, 16, 49]; $x = 5; $y = 10; foreach ($as as $a) { echo "$a => " . (ceil($a / $x) * $y) . "\n"; }
You have javascript disabled. You will not be able to edit any code.