Simple code like this:
$array = [
[11 => 771725],
[11 => 847226],
[10 => 410035],
[11 => 455387],
];
dd($array);
output:
The result in OCTOBER (10) there is 1 price:
["410035"]
while in NOVEMBER (11) there are 3 prices:
["771725", "847226", "455387"]
and at DECEMBER (12) is none
I need logic to calculate all prices in months 10, 11, and 12. The expected output is
[
10 => "2074338",
11 => "410035",
12 => "0"
]
Thanks :)
