I am trying to multiply two array values with each other with the following formula: Qty* Price = total of each multiple, then sum of all.
Array
(
[qty] => Array
(
[0] => .6
[1] => .2
[2] => .4
[3] => .75
[4] => 0.3
)
[price] => Array
(
[0] => 1.2
[1] => 0.5
[2] => 0.8
[3] => 12
[4] => 2
)
)
I could not figure out how to do that. Saw few example regarding the multiply in which they fixed value i.e. 2 or 5 etc. But in my case each qty has different price. Please can somebody suggest how to do that.