Hi all
On my site I store product information into an array when people add the items to their basket. The array structure is as follows and the example below contains 2 products:
Array
(
[6] => Array
(
[productid] => 6
[quantity] => 1
[productprice] => 127.20
[islarge] => 1
)
[5] => Array
(
[productid] => 5
[quantity] => 1
[productprice] => 79.50
[islarge] => 0
)
)
My question is, is there a simple function or way of checking if the array key 'islarge' is set to be true for any products in the array?
So, lets say the array contains 10 different products and 3 of those products have 'islarge' set to true and the other 7 are false.
What is the most simple solution to obtaining this and storing the fact that the array does contain products with 'islarge' set to true?
Many thanks for reading
Doug