WordPress/Sniff.php
public function strip_interpolated_variables( $string ) {
		if ( strpos( $string, '$' ) === false ) {
			return $string;
		}

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

		return preg_replace( self::REGEX_COMPLEX_VARS, '', $string );
	}
Strip variables from an arbitrary double quoted/heredoc string.

Intended for use with the contents of a T_DOUBLE_QUOTED_STRING or T_HEREDOC token.

@since 0.14.0

@param string $string The raw string.

@return string String without variables in it.