Copy code The code is as follows:
$array1 = array('a', 'b', ' c', 'd');
$array2 = array('a', 'c');
$array3 = array_intersect($array1, $array2);
if($array3) {
echo 'intersection';
}
?>
http://www.bkjia.com/PHPjc/322970.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/322970.htmlTechArticleCopy the code as follows: ?php $array1 = array('a', 'b', 'c', 'd'); $array2 = array('a', 'c'); $array3 = array_intersect($array1, $array2); if($array3) { echo 'There is intersection'; } ?...