DomDocument::document_element(PHP 4 >= 4.1.0) DomDocument::document_element — Returns root element node ОписаниеThis function returns the root element node of a document. The following example returns just the element with name CHAPTER and prints it. The other node -- the comment -- is not returned. Пример #1 Retrieving root element
<?phpРезультат выполнения данного примера:
domelement Object
(
[type] => 1
[tagname] => chapter
[0] => 6
[1] => 137960648
)
|
||