DOMNode
PHP Manual

DOMNode::hasChildNodes

(PHP 5)

DOMNode::hasChildNodes Checks if node has children

说明

bool DOMNode::hasChildNodes ( void )

This function checks if the node has children.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE.

参见


DOMNode
PHP Manual