(PHP 5, PHP 7, PHP 8)
DOMAttr represents an attribute in the DOMElement object.
$exclusive = false,$withComments = false,$xpath = null,$nsPrefixes = nullThe name of the attribute.
The element which contains the attribute or null.
Not implemented yet, always is null.
Not implemented yet, always is true.
The value of the attribute.
Note:
Note, XML entities are expanded upon setting a value. Thus the
&character has a special meaning. Setting value to itself will fail when value contains an&. To avoid entity expansion, use DOMElement::setAttribute() instead.