public static mergeRecursiveOverrule ( array $firstArray, array $secondArray, boolean $notAddKeys = FALSE, boolean $includeEmptyValues = TRUE, boolean $enableUnsetFeature = TRUE ) : array |
$firstArray |
array |
First array |
$secondArray |
array |
Second array, overruling the first array |
$notAddKeys |
boolean |
If set, keys that are NOT found in $firstArray will not be set. Thus only existing value can/will be overruled from second array. |
$includeEmptyValues |
boolean |
If set, values from $secondArray will overrule if they are empty or zero. Default: TRUE |
$enableUnsetFeature |
boolean |
If set, special values "__UNSET" can be used in the second array in order to unset array keys in the resulting array. |
return |
array |
Resulting array where $secondArray values has overruled $firstArray values |