- array_map: documentation ( source)
- print_r: documentation ( source)
<?php
$first = [
"Catalog No.:",
"H-B No.",
];
$second = [
[
"GG",
"692"
],
[
"VV",
"693"
]
];
$result = array_map(function($arr) use ($first){
foreach($first as $key => $value) {
$arr[$key] = $value . ' ' . $arr[$key];
}
return $arr;
}, $second);
print_r($result);