#44067 [Opn->Csd]: Implement hasChildren in SimpleXML
| From: | helly@php.net | Date: | Thu, 07 Feb 2008 09:33:46 +0000 |
| Subject: | #44067 [Opn->Csd]: Implement hasChildren in SimpleXML | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-122065@lists.php.net to get a copy of this message | ||
ID: 44067
Updated by: helly@php.net
Reported By: preinheimer@php.net
-Status: Open
+Status: Closed
Bug Type: Feature/Change Request
Operating System: N/A
PHP Version: 5.2.5
New Comment:
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at
http://www.php.net/downloads.php
Use SimpleXMLIterator :-)
Previous Comments:
------------------------------------------------------------------------
[2008-02-07 04:29:27] preinheimer@php.net
Description:
------------
SimpleXML provides the useful children() method to return the children
of a given element, it returns E_WARNING if no children are present. As
such, it would be useful to be able to ensure an element has children
before attempting to retreive them.
can i has cheezburger? or just
bool SimpleXMLElement->hasChidren()
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=44067&edit=1