note 24703 added to function.domnode-child-nodes
| From: | j dot metzger at steptown dot com | Date: | Mon, 26 Aug 2002 12:01:54 +0000 |
| Subject: | note 24703 added to function.domnode-child-nodes | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-35662@lists.php.net to get a copy of this message | ||
if no children present, method
returns
FALSE (bool)
you can check the return result like this:
$children = $domNode -> child_nodes();
if (is_bool($children))
print "Sorry, no children present ...";
--
http://www.php.net/manual/en/function.domnode-child-nodes.php
http://master.php.net/manage/user-notes.php?action=edit+24703
http://master.php.net/manage/user-notes.php?action=delete+24703
http://master.php.net/manage/user-notes.php?action=reject+24703