Tidy 函数
PHP 手册

tidyNode::getParent

(PHP 5 >= 5.2.2)

tidyNode::getParentreturns the parent node of the current node

说明

tidyNode tidyNode::getParent ( void )

Returns the parent node of the current node.

返回值

Returns a tidyNode if the node has a parent, or NULL otherwise.


Tidy 函数
PHP 手册