(PHP 5, PHP 7)
Declares the attribute specified by node to be of type ID
public void DOMElement::setIdAttributeNode ( DOMAttr $attr, bool $isId )
Declares the attribute specified by attr
to be of type ID.
Parameters:
attr
The attribute node.
isId
Set it to TRUE
if you want name
to be of type ID, FALSE
otherwise.
Returns:
No value is returned.
Exception:
Raised if the node is readonly.
Raised if name
is not an attribute of this element.
See also:
DOMDocument::getElementById() -
Please login to continue.