1if (in_array('a', $array_under_test) || in_array('b', $array_under_test)) {
2 // Success!
3}
4
1$uniqueKeys = array_unique($list[0])
2
3foreach ($uniqueKeys as $uniqueKey)
4{
5 $v = array_keys($list[0], $uniqueKey);
6
7 if (count($v) > 1)
8 {
9 foreach ($v as $key)
10 {
11 // Work with $list[0][$key]
12 }
13
14 }
15}
16
1$haystack = array(...);
2
3$target = array('foo', 'bar');
4
5if(count(array_intersect($haystack, $target)) == count($target)){
6 // all of $target is in $haystack
7}
8