Source Code:
(back to article)
<?php $arr1 = ['foo' => 'bar']; $arr2 = ['baz' => 'bof']; $arr3 = $arr1 + $arr2; print_r($arr3); // prints: // array( // 'foo' => 'bar', // 'baz' => 'bof', // ); ?>
Result:
Report an issue