ConFoo 2025

Dom\ParentNode::querySelectorAll

(PHP 8 >= 8.4.0)

Dom\ParentNode::querySelectorAllReturns a collection of elements that match the CSS selectors

说明

public Dom\ParentNode::querySelectorAll(string $selectors): Dom\NodeList

Returns a collection of elements that match the CSS selectors specified in selectors.

参数

selectors
A string containing one or more CSS 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.

参见

添加备注

用户贡献的备注

此页面尚无用户贡献的备注。
To Top