How can I tell if the value of any array key is the value I'm looking for?

Spirit.vn

New Member
I have an array of arrays like this:\[code\]$cart = Array ( [0] => Array ( [TypeFlag] => S [qty] => 2 [denom] => 50 [totalPrice] => 100 )[1] => Array ( [TypeFlag] => V [qty] => 1 [denom] => 25 [totalPrice] => 25 ) [2] => Array ( [TypeFlag] => C [qty] => 1 [denom] => 25 [totalPrice] => 25 ) ) \[/code\]Is there any way, short of looping through all of them and checking one at a time, to determine if the TypeFlag value for any of them is S?
 
Back
Top