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