I have a multi-dimensional array that might look like this.
Array
(
[0] => Array
(
[type] => feet
[color] => red
)
[2] => Array
(
[type] => feet
[color] => blue
)
[3] => Array
(
[type] => head
[color] => blue
)
[4] => Array
(
[type] => body
[color] => blue
)
)
I say might because it's being handed different information each time, but the premise is still the same.
I need to check for a color match but only on specific type combinations (head,body.feet). So basically I need to check if the array includes specific type combinations first, and then check them for color matches.
so an array that had the above items would return TRUE for a match of Blue
I'm having a tough time with this one. Any help would be great.
Thanks!