<?php $x = new \ArrayObject(["x" => 1]); $z = new \ArrayObject(["z" => 3]); $y = array_merge(["y" => 2], $x); var_dump($y);
You have javascript disabled. You will not be able to edit any code.