Dom\ParentNode::querySelector
(PHP 8 >= 8.4.0)
Dom\ParentNode::querySelector — Returns the first element that matches the CSS selectors
Description
Returns the first element that matches the CSS selectors specified
in selectors.
Parameters
selectors
-
A string containing one or more CSS selectors.
Return Values
Returns the first Dom\Element that matches
selectors. Returns null if no element matches.