DOMXPath::quoteQuotes a string for use in an XPath expression Description
public static string DOMXPath::quote(string
$str )
Quotes Parameters
Return ValuesReturns a quoted string to be used in an XPath expression. ExamplesExample #1 Matching attribute value with quotes
The above example will output: //book[@name="'quoted' name"] Found Book title Mixed quote types are also supported:
The above example will output: concat("'different' ",'"quote" styles') See Also
|