DOMDocument->createAttribute() Create new attribute &reftitle.description; DOMDocument DOMAttr 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.exceptions; Throws DOMException if name contains an invalid character. &reftitle.seealso;