mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Document that each() also accepts objects, but may return unexpected results + add link to object iteration
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@265142 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
ec9fc2e0f7
commit
ad7d582a65
1 changed files with 9 additions and 1 deletions
|
@ -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 @@ c => cranberry
|
|||
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 @@ c => cranberry
|
|||
<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>
|
||||
|
|
Loading…
Reference in a new issue