- array_map: documentation ( source)
- var_export: documentation ( source)
<?php
$parent = [
1 => Array (
0 => 'test1',
1 => 'test2'
),
2 => Array (
0 => 'test1_1',
1 => 'test2_2'
)
];
var_export(
array_map(null, ...$parent)
);