note 89645 added to function.simplexml-element-children
| From: | adamjones at hotmail dot com | Date: | Tue, 17 Mar 2009 18:31:32 +0000 |
| Subject: | note 89645 added to function.simplexml-element-children | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-152062@lists.php.net to get a copy of this message | ||
If the object has no children, I believe it throws this exception:
PHP Fatal error: Call to a member function children() on a non-object
There is no way to check if it has children before calling this.
----
Server IP: 69.147.83.197
Probable Submitter: 132.185.144.121
----
Manual Page -- http://www.php.net/manual/en/function.simplexml-element-children.php
Edit -- https://master.php.net/note/edit/89645
Del: integrated -- https://master.php.net/note/delete/89645/integrated
Del: useless -- https://master.php.net/note/delete/89645/useless
Del: bad code -- https://master.php.net/note/delete/89645/bad+code
Del: spam -- https://master.php.net/note/delete/89645/spam
Del: non-english -- https://master.php.net/note/delete/89645/non-english
Del: in docs -- https://master.php.net/note/delete/89645/in+docs
Del: other reasons-- https://master.php.net/note/delete/89645
Reject -- https://master.php.net/note/reject/89645
Search -- https://master.php.net/manage/user-notes.php