function drupal_array_merge_deep_array

cis7 drupal_array_merge_deep_array($arrays)
cle7 drupal_array_merge_deep_array($arrays)
elmsmedia7 drupal_array_merge_deep_array($arrays)
icor7 drupal_array_merge_deep_array($arrays)
meedjum_blog7 drupal_array_merge_deep_array($arrays)
mooc7 drupal_array_merge_deep_array($arrays)

Merges multiple arrays, recursively, and returns the merged array.

This function is equivalent to drupal_array_merge_deep(), except the input arrays are passed as a single array parameter rather than a variable parameter list.

The following are equivalent:

The following are also equivalent:

See also


3 calls to drupal_array_merge_deep_array()
advagg_pre_render_scripts in sites/all/modules/ulmus/advagg/advagg.module
Callback for pre_render to add elements needed for JavaScript to be rendered.
drupal_array_merge_deep in includes/
Merges multiple arrays, recursively, and returns the merged array.
drupal_get_js in includes/
Returns a themed presentation of all JavaScript code for the current page.


includes/, line 2122
Functions that need to be loaded on every Drupal request.


function drupal_array_merge_deep_array($arrays) {
  $result = array();

  foreach ($arrays as $array) {
    foreach ($array as $key => $value) {
      // Renumber integer keys as array_merge_recursive() does. Note that PHP
      // automatically converts array keys that are integer strings (e.g., '1')
      // to integers.
      if (is_integer($key)) {
        $result[] = $value;
      // Recurse when both values are arrays.
      elseif (isset($result[$key]) && is_array($result[$key]) && is_array($value)) {
        $result[$key] = drupal_array_merge_deep_array(array($result[$key], $value));
      // Otherwise, use the latter value, overriding any previous value.
      else {
        $result[$key] = $value;

  return $result;



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.