the desired result looks strange, but this code will do it:
$content = [];
foreach ($header as $idx => $val) {
$content[$idx] = array_merge($header[$idx], $main[$idx], $footer[$idx]);
}
1
solved Transform multiple arrays into one array?
the desired result looks strange, but this code will do it:
$content = [];
foreach ($header as $idx => $val) {
$content[$idx] = array_merge($header[$idx], $main[$idx], $footer[$idx]);
}
1
solved Transform multiple arrays into one array?