(PHP 5, PHP 7, PHP 8)
DOMDocument::createAttribute — Create new attribute
This function creates a new instance of class DOMAttr. Questo nodo non verrà mostrato nel documento a meno che venga inserito con, es. DOMNode::appendChild().
localNameThe name of the attribute.