2
I got the following array, how could I store in a new array only the "producto_id" of all "loja_id"?
array(2) {
[0]=> array(2) {
["loja_id"]=> string(3) "286"
[0]=> array(2) {
["produto_id"]=> string(4) "7224" ["qtd"]=> int(1)
}
[1]=> array(2) {
["produto_id"]=> string(4) "7167" ["qtd"]=> int(1)
}
}
[1]=> array(2) {
["loja_id"]=> string(3) "133"
[0]=> array(2) {
["produto_id"]=> string(4) "1078" ["qtd"]=> int(1) }
}
}
Var_dump the array and show it in the question, please. The current representation seems wrong to me.
– Jéf Bueno
Okay, I changed my question.
– Diego Vieira