From 446e64f854318d802ccad04a09032a7aaab62582 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Thu, 7 Jan 2010 12:25:06 +0000 Subject: [PATCH] Fixed bug #41662 (SimpleXML->children() misleading result) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@293214 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../simplexml/simplexmlelement/children.xml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/reference/simplexml/simplexmlelement/children.xml b/reference/simplexml/simplexmlelement/children.xml index a63daf0589..e970cae11a 100644 --- a/reference/simplexml/simplexmlelement/children.xml +++ b/reference/simplexml/simplexmlelement/children.xml @@ -49,6 +49,8 @@ &reftitle.returnvalues; + Returns a SimpleXMLElement element, whether the node + have children or not. @@ -122,6 +124,26 @@ begot a daughter who begot a son; and that son begot a son + + &reftitle.notes; + + + SimpleXMLElement::children returns a node + object no matter if the current node have children or not. Use the + SimpleXMLElement::count to check whether + there is any children. + + + + + &reftitle.seealso; + + + SimpleXMLElement::count + + + +