Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Dom\ParentNode::querySelectorDom\ParentNode::replaceChildren>
^Dom\ParentNodeLast updated: Mon, 26 Oct 2026

Dom\ParentNode::querySelectorAll

(PHP 8 >= 8.4.0)

Dom\ParentNode::querySelectorAll — Returns a collection of elements that match the CSS selectors

Description

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

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

Parameters

selectors

A string containing one or more CSS selectors.

Return Values

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

Errors/Exceptions

Throws a DOMException with code Dom\SYNTAX_ERR when selectors is not a valid CSS selector string.

See Also


<Dom\ParentNode::querySelectorDom\ParentNode::replaceChildren>
^Dom\ParentNodeLast updated: Mon, 26 Oct 2026