array_merge
PHP
<?php
$array1 = ['b'];
$array2 = ['a', 'b', 'c'];
array_merge($array1, $array2);
Array
(
[0] => b
[1] => a
[2] => b
[3] => c
)
$array1 + $array2;
Array
(
[0] => b
[1] => b
[2] => c
)
PHP
<?php
$array1 = ['b'];
$array2 = ['a', 'b', 'c'];
array_merge($array1, $array2);
Array
(
[0] => b
[1] => a
[2] => b
[3] => c
)
$array1 + $array2;
Array
(
[0] => b
[1] => b
[2] => c
)