DOMElement::setAttributeNodeNS
(PHP 5, PHP 7, PHP 8)
DOMElement::setAttributeNodeNS — Adds new attribute node to element
Parameters
attr
-
The attribute node.
Return Values
Returns the old attribute if it has been replaced or null if there was no old attribute.
If a DOM_WRONG_DOCUMENT_ERR error is raised, and strictErrorChecking is false, false is returned.