DOMElement::setIdAttributeNS

(PHP 5, PHP 7)
Declares the attribute specified by local name and namespace URI to be of type ID
public void DOMElement::setIdAttributeNS ( string $namespaceURI, string $localName, bool $isId )

Declares the attribute specified by localName and namespaceURI to be of type ID.

Parameters:
namespaceURI

The namespace URI of the attribute.

localName

The local name of the attribute, as prefix:tagname.

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

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

Please login to continue.