svn: /phpdoc/en/trunk/reference/simplexml/simplexmlelement/ children.xml

From: Date: Thu, 07 Jan 2010 12:25:06 +0000
Subject: svn: /phpdoc/en/trunk/reference/simplexml/simplexmlelement/ children.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-5780@lists.php.net to get a copy of this message
kalle Thu, 07 Jan 2010 12:25:06 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=293214 Log: Fixed bug #41662 (SimpleXML->children() misleading result) Bug: http://bugs.php.net/41662 (Open) SimpleXML->children() misleading result Changed paths: U phpdoc/en/trunk/reference/simplexml/simplexmlelement/children.xml Modified: phpdoc/en/trunk/reference/simplexml/simplexmlelement/children.xml =================================================================== --- phpdoc/en/trunk/reference/simplexml/simplexmlelement/children.xml 2010-01-07 12:15:14 UTC (rev 293213) +++ phpdoc/en/trunk/reference/simplexml/simplexmlelement/children.xml 2010-01-07 12:25:06 UTC (rev 293214) @@ -49,6 +49,8 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> + Returns a <classname>SimpleXMLElement</classname> element, whether the node + have children or not. </para> </refsect1> @@ -122,6 +124,26 @@ </para> </refsect1> + <refsect1 role="notes"> + &reftitle.notes; + + <simpara> + <methodname>SimpleXMLElement::children</methodname> returns a node + object no matter if the current node have children or not. Use the + <methodname>SimpleXMLElement::count</methodname> to check whether + there is any children. + </simpara> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><methodname>SimpleXMLElement::count</methodname></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file

« previous php.doc.cvs (#5780) next »