Searches for an node in the DOM tree for a given XPath expression or a CSS selector.
public find ( string $expression, string $type = Query::TYPE_CSS, boolean $wrapElement = true ) : |
||
$expression | string | XPath expression or a CSS selector |
$type | string | The type of the expression |
$wrapElement | boolean | Returns array of \DiDom\Element if true, otherwise array of \DOMElement |
리턴 |