i have an array that looks like this:
Array(
Array
(
[warehouse] => OTHER
[location] => B11
[skuonbox] => hx252
[caseqty] => 8
[row] =>
[shelving] => 30
[shelf] =>
[count] =>
[cases] => 0
[overstockqty] => 0
)
Array
(
[warehouse] => OTHER
[location] => B12
[skuonbox] => hx252
[caseqty] => 8
[row] =>
[shelving] => 30
[shelf] =>
[count] =>
[cases] => 0
[overstockqty] => 0
)
Array
(
[warehouse] => OTHER
[location] => C23
[skuonbox] => 423901-1691a
[caseqty] => 6
[row] =>
[shelving] => 36
[shelf] =>
[count] =>
[cases] => 0
[overstockqty] => 0
)
Array
(
[warehouse] => OTHER
[location] => C24
[skuonbox] => 423901-1691a
[caseqty] => 6
[row] =>
[shelving] => 36
[shelf] =>
[count] =>
[cases] => 0
[overstockqty] => 0
)
Array
(
[warehouse] => OTHER
[location] => D23
[skuonbox] => 423901-1691a
[caseqty] => 6
[row] =>
[shelving] => 36
[shelf] =>
[count] =>
[cases] => 0
[overstockqty] => 0
)
Array
(
[warehouse] => OTHER
[location] => D24
[skuonbox] => 423901-1691a
[caseqty] => 6
[row] =>
[shelving] => 36
[shelf] =>
[count] =>
[cases] => 0
[overstockqty] => 0
)
Array
(
[warehouse] =>
[location] =>
[skuonbox] =>
[caseqty] => 0
[row] =>
[shelving] => 0
[shelf] =>
[count] => 0
[cases] => 0
[overstockqty] => 0
)
)
I need to multiply "caseqty" with "cases" and add all the arrays. Is there a function to do this without reiterating through the array?
Array(
Array
(
[warehouse] => OTHER
[location] => B11
[skuonbox] => hx252
[caseqty] => 8
[row] =>
[shelving] => 30
[shelf] =>
[count] =>
[cases] => 0
[overstockqty] => 0
)
Array
(
[warehouse] => OTHER
[location] => B12
[skuonbox] => hx252
[caseqty] => 8
[row] =>
[shelving] => 30
[shelf] =>
[count] =>
[cases] => 0
[overstockqty] => 0
)
Array
(
[warehouse] => OTHER
[location] => C23
[skuonbox] => 423901-1691a
[caseqty] => 6
[row] =>
[shelving] => 36
[shelf] =>
[count] =>
[cases] => 0
[overstockqty] => 0
)
Array
(
[warehouse] => OTHER
[location] => C24
[skuonbox] => 423901-1691a
[caseqty] => 6
[row] =>
[shelving] => 36
[shelf] =>
[count] =>
[cases] => 0
[overstockqty] => 0
)
Array
(
[warehouse] => OTHER
[location] => D23
[skuonbox] => 423901-1691a
[caseqty] => 6
[row] =>
[shelving] => 36
[shelf] =>
[count] =>
[cases] => 0
[overstockqty] => 0
)
Array
(
[warehouse] => OTHER
[location] => D24
[skuonbox] => 423901-1691a
[caseqty] => 6
[row] =>
[shelving] => 36
[shelf] =>
[count] =>
[cases] => 0
[overstockqty] => 0
)
Array
(
[warehouse] =>
[location] =>
[skuonbox] =>
[caseqty] => 0
[row] =>
[shelving] => 0
[shelf] =>
[count] => 0
[cases] => 0
[overstockqty] => 0
)
)
I need to multiply "caseqty" with "cases" and add all the arrays. Is there a function to do this without reiterating through the array?