<?php $x = ['a'=>1,'c'=>5]; $y = array_merge(['a'=>2, 'b'=>4, 'c'=>6], $x); var_dump($y);
You have javascript disabled. You will not be able to edit any code.