array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'class.domattr.php', 1 => 'DOMAttr', ), 'up' => array ( 0 => 'book.dom.php', 1 => 'DOM', ), 'prev' => array ( 0 => 'dom.examples.php', 1 => 'Examples', ), 'next' => array ( 0 => 'domattr.construct.php', 1 => 'DOMAttr::__construct', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/dom/domattr.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.domattr.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5, PHP 7, PHP 8)
DOMAttr represents an attribute in the DOMElement object.
$exclusive
= false
,$withComments
= false
,$xpath
= null
,$nsPrefixes
= null
The 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.