I have two arrays:
$course = [
6 => 24,
0 => 20,
1 => 14,
// etc...
];
And
[
['course_id' => 1, 'course_name' => 'Appetizer'],
['course_id' => 2, 'course_name' => 'Breakfast'],
// etc
];
I want to merge related data between the two arrays based the keys in the $course array correlating to the course_id of the second array.
I want to be able to print out, for example, '1', 'Appetizer', '14'.