is it possible somehow change array which is processed by foreach? I tried this script
$iterator = 10; $cat = array(1 => \'a\',2 => \'b\',3 => \'c\');
'a',2 => 'b',3 => 'c'); foreach ($cat as $k => &$c)//observe the '&' { if ($iterator < 15) { $cat[$iterator] = $iterator; $iterator++; } echo $c; } ?>