array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'class.domelement.php', 1 => 'DOMElement', ), 'up' => array ( 0 => 'book.dom.php', 1 => 'DOM', ), 'prev' => array ( 0 => 'class.domdocumenttype.php', 1 => 'DOMDocumentType', ), 'next' => array ( 0 => 'domelement.after.php', 1 => 'DOMElement::after', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'es', 'path' => 'reference/dom/domelement.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.domelement.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)
$exclusive
= false
,$withComments
= false
,$xpath
= null
,$nsPrefixes
= null
The number of child elements.
First child element or null
.
Last child element or null
.
The next sibling element or null
.
The previous sibling element or null
.
Aún no implementado, siempre devuelve null
El nombre del elemento
A string representing the classes of the element separated by spaces
The element ID
Versión | Descripción |
---|---|
8.0.0 | The firstElementChild, lastElementChild, childElementCount, previousElementSibling, and nextElementSibling properties have been added. |
8.0.0 | DOMElement implements DOMParentNode and DOMChildNode now. |
Nota:
The DOM extension uses UTF-8 encoding. Use mb_convert_encoding(), UConverter::transcode(), or iconv() to handle other encodings.