DOMNode::hasAttributes
PHP function
Edit on GitHub ✎
(PHP 5, PHP 7, PHP 8)
Checks if node has attributes
Description
DOMNode::hasAttributes(): bool
This method checks if the node has attributes. The tested node has to be an XML_ELEMENT_NODE.
Parameters Parameters
Return Values
Success
See Also
DOMNode::hasChildNodes