DOMElement::setIdAttributeNode

(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() -

DOMElement::setIdAttribute() -

DOMElement::setIdAttributeNS() -

doc_php
2016-02-24 16:14:50
Comments
Leave a Comment

Please login to continue.