Fixed bug #41662 (SimpleXML->children() misleading result)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@293214 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Kalle Sommer Nielsen 2010-01-07 12:25:06 +00:00
parent 2c6f22d619
commit 446e64f854

View file

@ -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 @@ begot a daughter who begot a son; and that son begot a son
</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