function merge_arrays in Table of Contents 7.2
1 call to merge_arrays()
- _tableofcontents_filter_process in ./
tableofcontents.filters.inc - Process the text for the table of content.
File
- ./
tableofcontents.filters.inc, line 120 - Table of Contents - Versatile system for generating Tables of Contents for fields - filters.
Code
function merge_arrays($a, $b) {
foreach ($b as $k => $v) {
$a[$k] = array_key_exists($k, $a) && is_array($v) ? merge_arrays($a[$k], $b[$k]) : $v;
}
return $a;
}