- Output for 8.1.0 - 8.1.29, 8.2.0 - 8.2.23, 8.3.0 - 8.3.11
- array(2) { ["test"]=> string(1) "1" ["test1"]=> string(1) "2" }
<?php
$insertData = [
[
'test' => '1',
'test1' => '2',
],
[
'test' => '3',
'test1' => '4',
]
];
$values = [];
foreach ($insertData as $row) {
$values += $row;
}
var_dump(
($values),
);