i have this array :
$array = array('a' => 'value of a', 'b' => 'value of b', 'c' => 'value of c',
'd' => 'value of d');
this list of items :
$items = array ('a' => 'value','b'=> 'value','c'=> 'value','d'=> 'value');
i want to check if at least one of the keys of $items exist in $array, if so return an array with one / availableones and its/their values.
this is what i have tried so far, but cant get it right :
if (array_key_exists('a', $array) || array_key_exists('b', $array)
|| array_key_exists('c', $array) || array_key_exists('d', $array)) {
}
any help would be appreciated.
thanx