array reset keys php code example Example: reset array keys php foreach($input as &$val) { $val = array_values($val); }