$a3 = array_intersect($a1,$a2);
If (count($a3) > 0) {
echo "Has Some Items";
print_r($ar); //this will show the matching items.
} else {
echo "No matching items";
}
johnkolbert
ASKER
Ah, perfect. That seems to be what I'm looking for! Many thanks!
wildzero
print_r($ar); //this will show the matching items.
should be
print_r($a3); //this will show the matching items.
$a1 = array('red','green','blue'
$a2 = array('pink','purple','blu
$a3 = array_intersect($a1,$a2);
If (count($a3) > 0) {
echo "Has Some Items";
print_r($ar); //this will show the matching items.
} else {
echo "No matching items";
}