public function stripVariables($string)
    {
        if (strpos($string, '$') === false) {
            return $string;
        }

        return preg_replace(self::REGEX_COMPLEX_VARS, '', $string);
    }
public function stripVariables($string)
    {
        if (strpos($string, '$') === false) {
            return $string;
        }

        return preg_replace(self::REGEX_COMPLEX_VARS, '', $string);
    }
public function stripVariables ( $ string ) { if ( strpos ( $ string , '$' ) === false ) { return $ string ; } return preg_replace ( self :: REGEX_COMPLEX_VARS , '' , $ string ) ; }
Strip variables from an arbitrary double quoted string.

Intended for use with the contents of a T_DOUBLE_QUOTED_STRING.

@param string $string The raw string.

@return string String without variables in it.
Strip variables from an arbitrary double quoted string .