PHP - Manual: Dom\ParentNode::querySelectorAll
2025-02-27
(PHP 8 >= 8.4.0)
Dom\ParentNode::querySelectorAll — Returns a collection of elements that match the CSS selectors
Returns a collection of elements that match the CSS selectors specified
in selectors
.
selectors
Returns a static collection of elements that match the CSS selectors
specified in selectors
.
Throws a DOMException with code
Dom\SYNTAX_ERR
when selectors
is not a valid CSS selector string.
官方地址:https://www.php.net/manual/en/dom-parentnode.queryselectorall.php