Currently I want to output a data from a database. I have two separate arrays. May I know is there a way to combine those arrays. The code is as below,
$array_1 = [
'memo' => 'title string',
'break_down' => 'title string',
'images' => 'title string',
'email_content' => 'title string'
];
// content from db
$array_2 = [$memo, $break_down, $images, $email_content];
// I want it to display like this
<?php foreach ($array_1 as $key=> $name) : ?>
<p>
<?= $name; ?> = <?php //content on $array_2 ?>
<?php //eg: title string = $memo and so on.. ?>
</p>
<?php endforeach ?>