3v4l.org

run code in 300+ PHP versions simultaneously
<?php $insertData = [ [ 'test' => '1', 'test1' => '2', ], [ 'test' => '3', 'test1' => '4', ] ]; $values = []; foreach ($insertData as $row) { array_push($values, ...array_values($row)); } var_dump( ($values), );

preferences:
26.48 ms | 406 KiB | 5 Q