Php/docs/domnode.haschildnodes

来自菜鸟教程
跳转至:导航、​搜索

DOMNode::hasChildNodes

(PHP 5, PHP 7)

DOMNode::hasChildNodes Checks if node has children


说明

public DOMNode::hasChildNodes ( ) : bool

This function checks if the node has children.


返回值

成功时返回 true, 或者在失败时返回 false


参见