DOMDocument::createAttribute Create new attribute &reftitle.description; public DOMAttrfalseDOMDocument::createAttribute stringlocalName This function creates a new instance of class DOMAttr. &dom.node.inserted; &reftitle.parameters; localName The name of the attribute. &reftitle.returnvalues; The new DOMAttr or &false; if an error occurred. &reftitle.errors; DOM_INVALID_CHARACTER_ERR Raised if localName 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