Hyvor Developer
  Home   Download   Copy
Code
<?php
$array1 = ['name' => 'John', 'age' => 24];
$array2 = ['country' => 'UK'];

$arrayMerged = $array1 + $array2;
var_dump($arrayMerged);
Result