private function stripslashes_recursive($variable)
    {
        if (!empty($variable) && is_string($variable)) {
            return stripslashes($variable);
        }

        if (!empty($variable) && is_array($variable)) {
            foreach ($variable as $i => $value) {
                $variable[$i] = $this->stripslashes_recursive($value);
            }
        }

        return $variable;
    }
private function stripslashes_recursive($variable)
    {
        if (!empty($variable) && is_string($variable)) {
            return stripslashes($variable);
        }

        if (!empty($variable) && is_array($variable)) {
            foreach ($variable as $i => $value) {
                $variable[$i] = $this->stripslashes_recursive($value);
            }
        }

        return $variable;
    }
private function stripslashes_recursive ( $ variable ) { if ( ! empty ( $ variable ) && is_string ( $ variable ) ) { return stripslashes ( $ variable ) ; } if ( ! empty ( $ variable ) && is_array ( $ variable ) ) { foreach ( $ variable as $ i => $ value ) { $ variable [ $ i ] = $ this -> stripslashes_recursive ( $ value ) ; } } return $ variable ; }
Strip slashes recursive

@param array|string $variable
@return array|string
Strip slashes recursive