array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'dom-parentnode.queryselectorall.php', 1 => 'Dom\\ParentNode::querySelectorAll', 2 => 'Returns a collection of elements that match the CSS selectors', ), 'up' => array ( 0 => 'class.dom-parentnode.php', 1 => 'Dom\\ParentNode', ), 'prev' => array ( 0 => 'dom-parentnode.queryselector.php', 1 => 'Dom\\ParentNode::querySelector', ), 'next' => array ( 0 => 'dom-parentnode.replacechildren.php', 1 => 'Dom\\ParentNode::replaceChildren', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/dom/dom/parentnode/queryselectorall.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

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.

Прогляньте також