DomQuery
class DomQuery extends SimpleXMLElement
DomQuery simplifies querying (X)HTML documents.
Methods
array
find(string $selector)
Returns array of descendants filtered by a selector.
bool
has(string $selector)
Check the current document against a selector.
static string
css2xpath(string $css)
Transforms CSS expression to XPath.
Details
at line 18
static DomQuery
fromHtml(string $html)
No description
at line 50
static DomQuery
fromXml(string $xml)
No description
at line 60
array
find(string $selector)
Returns array of descendants filtered by a selector.
at line 69
bool
has(string $selector)
Check the current document against a selector.
at line 78
static string
css2xpath(string $css)
Transforms CSS expression to XPath.