php reset array keys starting 0 code example
Example 1: php reset array keys
$arr = array_values($arr)
Example 2: php remove array element reset keys
unset($foo[0]); // remove item at index 0
$foo2 = array_values($foo); // 'reindex' array
Example 3: reset array keys php
foreach($input as &$val) {
$val = array_values($val);
}