DOMDocument->createAttribute Create new attribute Description objectDOMDocument->createAttribute stringname This function returns a new instance of class DOMAttr. The name of the attribute is the value of the first parameter. &dom.node.inserted; The return value is &false; if an error occurred. See also DOMDocument->createElement(), DOMNode->appendChild(), DOMDocument->createTextNode(), DOMDocument->createComment() and DOMDocument->createProcessingInstruction().