<?php $n = array(1, 3); $k = 0; $x = 1; $z[] = $x; for ($i = 1; $i < 300; $i++) { $x += $n[$k]; $z[] = $x; if ($k == 0) $k = 1; else $k = 0; } echo implode(',', $z);
You have javascript disabled. You will not be able to edit any code.