array_merge_recursive()
array_merge_recursive - Merge two or more arrays recursively
Syntax
array array_merge_recursive (
array $array1,
array $...)
Arguments
- array1 - Initial array to merge.
- ... - Variable list of arrays to recursively merge.
Description
array_merge_recursive() merges the elements of one or more arrays together so that the values of one are appended to the end of the previous one. It returns the resulting array.
Version
PHP 4.0.1, 5
Return value
An array of values resulted from merging the arguments together.