DOMElement::setIdAttributeNode
(PHP 5, PHP 7, PHP 8)
DOMElement::setIdAttributeNode — Declares the attribute specified by node to be of type ID
Description
public function DOMElement::setIdAttributeNode(
DOMAttr $attr,
bool $isId):
void
Parameters
attr
-
The attribute node.
isId
-
Set it to true if you want name to be of type
ID, false otherwise.
Return Values
No value is returned.