<?php $arr = ['a','b','c','d','e']; $i = 1; foreach ($arr as $key => $value) { $child[$i] = $value; unset($child[$i++]); } var_dump($arr);
You have javascript disabled. You will not be able to edit any code.