I have the following array
Array
(
[0] => Array
(
[rate] => normal-rate
[quantity] => 1
)
[1] => Array
(
[rate] => extra-rate
[quantity] => 2
)
[2] => Array
(
[rate] => extra-rate
[quantity] => 1
)
)
I am trying to work out the percentage of extra-rate items there are in the array, can I do this directly or should I first create a new array by counting the quantity and adding everything together?