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;
    }