0
Guys, I need help, look at the examples below:
$cores = array (‘vermelhas’,’amarelas’,’verdes’)
$ frutas = array(
array (‘maçã’,’morango’,’cereja’,’acerola’),
array (‘banana’,’melão’),
array (‘abacate’,’kiwi’,’pera’))
I need to display the arrays from above and then the muktidimensional arrays in list format, they should be displayed as the example below, using for or foreach:
Vermelhas
• maça
• morango
• cereja
• acerola
Amarelas
• banana
• melão
Verdes
• abacate
• kiwi
• pera
What is the connection of the first array with the second? Because if it is in order, the "green" will be "banana and melon".
– Sam