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