主页
PHP
PHP 运算符
tryphp_oper_arr_union
运行 ❯
×
更改方向
保存代码
更改主题
<?php $x = array("a" => "red", "b" => "green"); $y = array("c" => "blue", "d" => "yellow"); print_r($x + $y); // union of $x and $y ?>
Array ( [a] => red [b] => green [c] => blue [d] => yellow )