<div class="codetitle"><a style="CURSOR: pointer" data="8010" class="copybut" id="copybut8010" onclick="doCopy('code8010')"> 代码如下:@H_301_1@<div class="codebody" id="code8010">
<?PHP
$array1 = array('a','b','c','d');
$array2 = array('a','c');
$array3 = arrayintersect($array1,$array2);
if($array3) {
echo '有交集';
}
?>
@H301_1@