<?php $a = ['a','b','c']; foreach ($a as $i => $val) { if ($i == 0){ array_push ($a, 'x'); } echo $val." "; }
You have javascript disabled. You will not be able to edit any code.