<?php $array = [1,2,3]; foreach ($array as $item) { echo "$item\n"; $array[] = $item; } print_r($array);
You have javascript disabled. You will not be able to edit any code.