mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
2c6f22d619
commit
446e64f854
1 changed files with 22 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue