I\'m designing an electrical engineering application. However, i\'m stuck on this: I have the following array
You can try :
$searchKeys = array();
foreach ( $GroupOfEight as $key => $values ) {
(count(array_intersect($values, $myStack)) == count($myStack)) and $searchKeys[] = $key;
}
#Output all keys it found same match
var_dump($searchKeys);
#OR Output Each Array it found a match
foreach($searchKeys as $key)
{
var_dump($GroupOfEight[$key]);
}