php remove element from array reset keys code example
Example 1: php reset array keys
$arr = array_values($arr)
Example 2: reset array keys php
foreach($input as &$val) {
$val = array_values($val);
}
$arr = array_values($arr)
foreach($input as &$val) {
$val = array_values($val);
}