Name
array_merge_recursive
Synopsis
array array_merge_recursive(arrayarray1
, arrayarray2
[, ... arrayarrayN
])
Like array_merge()
, creates
and returns an array by appending each input array to the previous.
However, unlike array_merge()
, when
multiple elements have the same string key, an array containing each
value is inserted into the resulting array.
Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.