Hi all
I have the following array which can have multiple keys as you can see. And now I am stuck and need help!
I need some one to explain or ideally provide a snippet of code that would search through the array to see if any occurances of [giftwrap] => are set to 1.
If one is found, then I need to return a bolean true as I will later use that value to change a message in my webpage.
Array (
[281] => Array (
[quantity] => 1
[productprice] => 31.99
[productcolour] => 27
[productsize] => 14
[giftwrap] => 1
)
[311] => Array (
[quantity] => 1
[productprice] => 38.50
[productcolour] => 3
[productsize] => 14
[giftwrap] => 0
)
)
Any suggestion would be greatly appreciated.
Thanks in advance.