|
PHP5中文手册
DomDocument->document_element(No version information available, might be only in CVS) DomDocument->document_element — Returns root element node 说明
domelement DomDocument->document_element
( void
)
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. Example#1 Retrieving root element
<?php 上例将输出:
|