DOM XML (PHP 4) 函数
PHP Manual

DomNode->has_child_nodes

(PHP 4 >= 4.1.0)

DomNode->has_child_nodes Checks if node has children

说明

bool DomNode->has_child_nodes ( void )

This function checks if the node has children.

See also domnode_child_nodes().


DOM XML (PHP 4) 函数
PHP Manual