Array #1 looks something like this (simplified):
Array
(
[Appetizers] => Array
(
[0] => Array
(
[category] => Appetizers
[name] => Beef Tenderloin Carpaccio
)
[1] => Array
(
[category] => Appetizers
[name] => Calamari Fritto Misto
)
)
[Flatbreads] => Array
(
[0] => Array
(
[category] => Flatbreads
[name] => Quattro Formaggi
)
[1] => Array
(
[category] => Flatbreads
[name] => Tomato & Burrata
)
)
)
Array #2 Looks like this:
Array
(
[0] => Array
(
[category] => Appetizers
[note] => Choose One Item From Each Category
)
[1] => Array
(
[category] => Flatbreads
[note] => with Shoestring or Wedge Potatoes
)
)
How would I be able to merge the ['note'] from Array #2 into Array #1, based on a match of the Array #1's category KEY with Array #2's 'category' VALUE? So the result is like this:
Array
(
[Appetizers] => Array
(
[0] => Array
(
[category] => Appetizers
[name] => Beef Tenderloin Carpaccio
[note] => Choose One Item From Each Category
)
[1] => Array
(
[category] => Appetizers
[name] => Calamari Fritto Misto
[note] => Choose One Item From Each Category
)
)
[Flatbreads] => Array
(
[0] => Array
(
[category] => Flatbreads
[name] => Quattro Formaggi
[note] => with Shoestring or Wedge Potatoes
)
[1] => Array
(
[category] => Flatbreads
[name] => Tomato & Burrata
[note] => with Shoestring or Wedge Potatoes
)
)
)