(PHP 5, PHP 7, PHP 8)
DOMDocument::createAttribute — Create new attribute
This function creates a new instance of class DOMAttr. Dieser Knoten wird im Dokument erst dann angezeigt, wenn er mit (z. B.) DOMNode::appendChild() eingefügt wird.
localName
The name of the attribute.