DOMDocument::createAttribute
Create new attribute
&reftitle.description;
DOMAttrDOMDocument::createAttribute
stringname
This function creates a new instance of class DOMAttr.
&dom.node.inserted;
&reftitle.parameters;
name
The name of the attribute.
&reftitle.returnvalues;
The new DOMAttr or &false; if an error occured.
&reftitle.errors;
DOM_INVALID_CHARACTER_ERR
Raised if name contains an invalid character.
&reftitle.seealso;
DOMNode::appendChild
DOMDocument::createAttributeNS
DOMDocument::createCDATASection
DOMDocument::createComment
DOMDocument::createDocumentFragment
DOMDocument::createElement
DOMDocument::createElementNS
DOMDocument::createEntityReference
DOMDocument::createProcessingInstruction
DOMDocument::createTextNode