I want to combine two arrays but keeping the keys with digit order.
Here's the first array:
array:3 [▼
0 => array:1 [▼
"nombre" => "Pilsener"
]
1 => array:1 [▼
"nombre" => "Golden"
]
2 => array:1 [▼
"nombre" => "Suprema"
]
]
And here's the other array:
array:3 [▼
0 => "6"
1 => "5"
2 => "1"
]
What i want is:
array:3 [▼
0 => array:1 [▼
"nombre" => "Pilsener"
"cantidad" => "6"
]
1 => array:1 [▼
"nombre" => "Golden"
"cantidad" => "5"
]
2 => array:1 [▼
"nombre" => "Suprema"
"cantidad" => "1"
]
]
I searched and found this but that didn't worked for me...