DOMNode::hasChildNodes

This function checks if the node has children

public function hasChildNodes(): bool;

Returns

  • bool - - Returns TRUE on success or FALSE on failure.