实例首页
自学教程
IT工具箱
源代码
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>PHP array_merge() 实例 - 自学教程(runoops.com)</title> </head> <body> <?php $a1=array("a"=>"red","b"=>"green"); $a2=array("c"=>"blue","b"=>"yellow"); echo '<pre>'; print_r(array_merge($a1,$a2)); echo '</pre>'; ?> </body> </html>
运行结果: