Object function reference

select

A reference entry for select

Object function · XPath

select(string expression) ⇒ list

Returns the nodes selected by an XPath expression. The alias query is also available.

Example

YASS
$items = $document->select("//li")