Php array_merge array merging function array_merge
(PHP 4 and PHP 5)
Array_merge-merge one or more Arrays
Description
Array array_merge (array $ array1 [, array $ array2 [, array $...])
The values of one or more arrays of the merged content are attached to such an array before the end of the year. Returns the generated array.
If the input array has the same string key, the key to future value will overwrite the previous one. However, if the array contains a number key, the value will not overwrite the original value but will be appended.
If there is only one array, a numeric array index is provided, and the key obtains the reindexed continuous mode.
Parameters
Array1
The original array is merged.
Array
Recursive merge of Variable list arrays.
Return Value
Array generated by the return rate.
Modify
Version description
5.0.0 warning
The behavior array_merge () has been modified in PHP 5. In PHP 4, array_merge () currently only accepts parameter arrays. However, you can use type ing to merge other types. See the details in the following example.
Example #1 array_merge () PHP 5