cvs: phpdoc /en/reference/array/functions each.xml
| From: | Kalle Sommer Nielsen | Date: | Tue, 19 Aug 2008 23:18:43 +0000 |
| Subject: | cvs: phpdoc /en/reference/array/functions each.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-2058@lists.php.net to get a copy of this message | ||
kalle Tue Aug 19 23:18:43 2008 UTC
Modified files:
/phpdoc/en/reference/array/functions each.xml
Log:
Document that each() also accepts objects, but may return unexpected results + add link to object
iteration
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/array/functions/each.xml?r1=1.20&r2=1.21&diff_format=u
Index: phpdoc/en/reference/array/functions/each.xml
diff -u phpdoc/en/reference/array/functions/each.xml:1.20
phpdoc/en/reference/array/functions/each.xml:1.21
--- phpdoc/en/reference/array/functions/each.xml:1.20 Sun Dec 30 19:17:05 2007
+++ phpdoc/en/reference/array/functions/each.xml Tue Aug 19 23:18:42 2008
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.20 $ -->
+<!-- $Revision: 1.21 $ -->
<refentry xml:id="function.each" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>each</refname>
@@ -150,6 +150,13 @@
loop.
</para>
</caution>
+ <warning>
+ <para>
+ <function>each</function> will also accept objects, but may return unexpected
+ results. Its therefore not recommeded to iterate though object properties
+ with <function>each</function>.
+ </para>
+ </warning>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
@@ -162,6 +169,7 @@
<member><function>next</function></member>
<member><function>prev</function></member>
<member><link
linkend="control-structures.foreach">foreach</link></member>
+ <member><link linkend="oop5.iterations">Object
Iteration</link></member>
</simplelist>
</para>
</refsect1>