class Selector extends DOMXPath (View source)

Methods

count(string $selector, DOMNode $context = null, bool $registerNodeNS = true)

Count all nodes matching the given CSS selector

get(string $selector, DOMNode $context = null, bool $registerNodeNS = true)

Returns a \DOMNodeList containing all nodes matching the given CSS selector

Details

DOMNodeList count(string $selector, DOMNode $context = null, bool $registerNodeNS = true)

Count all nodes matching the given CSS selector

Parameters

string $selector
DOMNode $context
bool $registerNodeNS

Return Value

DOMNodeList

DOMNodeList get(string $selector, DOMNode $context = null, bool $registerNodeNS = true)

Returns a \DOMNodeList containing all nodes matching the given CSS selector

Parameters

string $selector
DOMNode $context
bool $registerNodeNS

Return Value

DOMNodeList