运行 ❯
获得您
自己
的 PHP 服务器
×
更改方位
更改主题,深色/浅色
转到 Spaces
<!DOCTYPE html> <html> <body> <?php $a1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow"); $a2=array("a"=>"red","b"=>"green","g"=>"blue"); $a3=array("a"=>"red","b"=>"green","g"=>"blue"); $result=array_intersect_assoc($a1,$a2,$a3); print_r($result); ?> </body> </html>