0
I have this array of associative array’s:
Array {
[0]=> array(4) { ["nome"]=> string(35) "ACRILEX TECIDO 37ML AMARELO CANARIO"
["preco"]=> string(4) "1.65"
["quantidade"]=> string(1) "1"
["imagem"]=> string(25) "Loja/imgPQ/4140589589.gif" }
[1]=> array(4) { ["nome"]=> string(35) "ACRILEX TECIDO 37ML AMARELO LIM�O"
["preco"]=> string(4) "1.65"
["quantidade"]=> string(1) "1"
["imagem"]=> string(25) "Loja/imgPQ/4140504504.gif" } }
And I wanted to go through it and when I found a name equal to one of the products that returned the position where this associative array is to access its quantity
The simplest is through
foreach
. Have you tried anything?– Woss
I already got through the foreach with key => value
– Pedro Costa
Answers should be in the answer area, not the question.
– Woss