public static function clean_quotes($string)
    {
        if (static::wrapping_quote_for($string)) {
            $string = substr($string, 1); // remove first character
            $string = substr($string, 0, -1); // remove last
        }

        return $string;
    }
public static function clean_quotes($string)
    {
        if (static::wrapping_quote_for($string)) {
            $string = substr($string, 1); // remove first character
            $string = substr($string, 0, -1); // remove last
        }

        return $string;
    }
public static function clean_quotes ( $ string ) { if ( static :: wrapping_quote_for ( $ string ) ) { $ string = substr ( $ string , 1 ) ; // remove first character $ string = substr ( $ string , 0 , - 1 ) ; // remove last } return $ string ; }
Trim surrounding quotes from a string

@param $string

@return string
Trim surrounding quotes from a string