private function mergeSettings($settingsa, &$settingsb)
    {
        foreach ($settingsb as $key => &$value) {
            if (isset($settingsa[$key])) {
                if (is_array($value)) {
                    $this->mergeSettings($settingsa[$key], $value);
                } else {
                    $value = $settingsa[$key];
                }
            }
        }
    }
private function mergeSettings($settingsa, &$settingsb)
    {
        foreach ($settingsb as $key => &$value) {
            if (isset($settingsa[$key])) {
                if (is_array($value)) {
                    $this->mergeSettings($settingsa[$key], $value);
                } else {
                    $value = $settingsa[$key];
                }
            }
        }
    }
private function mergeSettings ( $ settingsa , & $ settingsb ) { foreach ( $ settingsb as $ key => & $ value ) { if ( isset ( $ settingsa [ $ key ] ) ) { if ( is_array ( $ value ) ) { $ this -> mergeSettings ( $ settingsa [ $ key ] , $ value ) ; } else { $ value = $ settingsa [ $ key ] ; } } } }
Merge settings from an external source overriding internals by a nested array.

@param array $settingsa
@param array $settingsb
Merge settings from an external source overriding internals by a nested array .