$array = [
'0' => [
'name' => '111',
'age' => '2',
],
'1' => [
'name' => '111',
'age' => '2',
],
'2' => [
'name' => '111',
'age' => '2',
],
// '4' => [
// 'name' => '111',
// 'age' => '2',
// ],
'5' => [
'name' => '111',
'age' => '2',
],
'6' => [
'name' => '111',
'age' => '2',
],
];
dump(array_values($array));
exit;
<pre>array(5) { [0] => array(2) { ["name"] => string(3) "111" ["age"] => string(1) "2" } [1] => array(2) { ["name"] => string(3) "111" ["age"] => string(1) "2" } [2] => array(2) { ["name"] => string(3) "111" ["age"] => string(1) "2" } [3] => array(2) { ["name"] => string(3) "111" ["age"] => string(1) "2" } [4] => array(2) { ["name"] => string(3) "111" ["age"] => string(1) "2" } } </pre>