The content of this article is about merging two one-dimensional arrays in PHP. Now I share it with you. Friends in need can refer to it
'zero_a' , 2 => 'two_a' , 3 => 'three_a' ); $array2 = array( 1 => 'one_b' , 3 => 'three_b' , 4 => 'four_b' ); $result = $array1 + $array2 ; var_dump ( $result ); ?>
Related recommendations:
php merge array function array_merge()
The above is the detailed content of PHP merge two 1D arrays. For more information, please follow other related articles on the PHP Chinese website!