    DOMDocument8b7c:f320:99b9:690f:4595:cd17:293a:c069reateAttribute (PHP 5, PHP 7, PHP 8)
DOMDocument8b7c:f320:99b9:690f:4595:cd17:293a:c069reateAttribute — Create new attribute   Description public DOMDocument8b7c:f320:99b9:690f:4595:cd17:293a:c069reateAttribute(string $localName): DOMAttr|false  This function creates a new instance of class DOMAttr. This node will not show up in the document unless it is inserted with (e.g.) DOMNo8b7c:f320:99b9:690f:4595:cd17:293a:c069appendChild().    Parameters
  localName
   The name of the attribute.      Return Values  The new DOMAttr or false if an error occurred.    Errors/Exceptions
  DOM_INVALID_CHARACTER_ERR
   Raised if localName contains an invalid character.      See Also
 DOMNo8b7c:f320:99b9:690f:4595:cd17:293a:c069appendChild() - Adds new child at the end of the children DOMDocument8b7c:f320:99b9:690f:4595:cd17:293a:c069reateAttributeNS() - Create new attribute node with an associated namespace DOMDocument8b7c:f320:99b9:690f:4595:cd17:293a:c069reateCDATASection() - Create new cdata node DOMDocument8b7c:f320:99b9:690f:4595:cd17:293a:c069reateComment() - Create new comment node DOMDocument8b7c:f320:99b9:690f:4595:cd17:293a:c069reateDocumentFragment() - Create new document fragment DOMDocument8b7c:f320:99b9:690f:4595:cd17:293a:c069reateElement() - Create new element node DOMDocument8b7c:f320:99b9:690f:4595:cd17:293a:c069reateElementNS() - Create new element node with an associated namespace DOMDocument8b7c:f320:99b9:690f:4595:cd17:293a:c069reateEntityReference() - Create new entity reference node DOMDocument8b7c:f320:99b9:690f:4595:cd17:293a:c069reateProcessingInstruction() - Creates new PI node DOMDocument8b7c:f320:99b9:690f:4595:cd17:293a:c069reateTextNode() - Create new text node   


    
{'path': 'public/docs/php/domdocument.createattribute.html', 'source': 'DevDocs.IO'}