reset array keys php
snippet in php

php reset array keys

user9843

$arr = array_values($arr)

reset array keys php

user9527

foreach($input as &$val) {
   $val = array_values($val);
}