public static function deepReplace($ini, $search, $replace)
    {
        if (is_object($ini)) {
            foreach ($ini as $key => &$value) {
                $value = self::deepReplace($value, $search, $replace);
            }
        } else {
            $ini = str_replace($search, $replace, $ini);
            return $ini;
        }
        return $ini;
    }
public static function deepReplace($ini, $search, $replace)
    {
        if (is_object($ini)) {
            foreach ($ini as $key => &$value) {
                $value = self::deepReplace($value, $search, $replace);
            }
        } else {
            $ini = str_replace($search, $replace, $ini);
            return $ini;
        }
        return $ini;
    }
public static function deepReplace ( $ ini , $ search , $ replace ) { if ( is_object ( $ ini ) ) { foreach ( $ ini as $ key => & $ value ) { $ value = self :: deepReplace ( $ value , $ search , $ replace ) ; } } else { $ ini = str_replace ( $ search , $ replace , $ ini ) ; return $ ini ; } return $ ini ; }
Replaces text in every value of the config, recursively

@param string $search
The string to search for
@param string $replace
The string for replace with
@throws Exception
@return Ini
Replaces text in every value of the config recursively