运行 ❯
获取你
自己的 PHP
服务器
×
调整方向
调整主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> <?php $a1=array("a"=>"red","b"=>"green","c"=>"blue","d"=>"yellow"); $a2=array("a"=>"red","b"=>"green","c"=>"blue"); $result=array_intersect_assoc($a1,$a2); print_r($result); ?> </body> </html>