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