- array_push: documentation ( source)
- var_dump: documentation ( source)
- array_values: documentation ( source)
<?php
$insertData = [
[
'test' => '1',
'test1' => '2',
],
[
'test' => '3',
'test1' => '4',
]
];
$values = [];
foreach ($insertData as $row) {
array_push($values, ...array_values($row));
}
var_dump(
($values),
);