(no version information, might be only in CVS)
DomNode_>parent_node __
Returns the parent of the node
Description
object
DomNode_>parent_node ( void )
This function returns the parent node_
(PHP >= 4_3 only) If no parent is found, NULL is returned_
The following example will show two identical lists of children_
Ejemplo 1_ Finding the document of a node <?php
$doc = domxml_new_doc("1_0");
$node = $doc_>create_element("para");
$node = $doc_>append_child($node);
$children = $doc_>children();
print_r($children);
$doc2 = $node_>parent_node();
$children = $doc2_>children();
print_r($children);
?> |
|