<?php $in = range(0, 1000); $out = []; $f = 100; foreach ($in as $i) { $out[] = do2($f, $i); } print_r($out); function inc($v) { $step = pow(10, floor(log10($v / 50))) ; return $v + $step; } function do2($v, $steps) { $result = $v; while ($steps--) { $result = inc($result); } return $result; }
You have javascript disabled. You will not be able to edit any code.
This script was stopped while abusing our resources