(PHP 5, PHP 7, PHP 8)
DOMDocument::createAttribute — Create new attribute
This function creates a new instance of class DOMAttr. Цей вузол не відображатиметься в документі, якщо його не буде вставлено (напр.) функцією DOMNode::appendChild().
localName
The name of the attribute.