array_merge_recursive

PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8
array_merge_recursive - Merge one or more arrays recursively

Example #1 array_merge_recursive example

Result: Array ( [color] => Array ( [favorite] => Array ( [0] => red [1] => green ) [0] => blue ) [0] => 5 [1] => 10 )
PHP Version:


Example #2 of array_merge_recursive

PHP Version:


Function array_merge_recursive:

Arrays Functions

Most used PHP functions