mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
foreach with objects (bug #31697)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@185271 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
322f7a1d99
commit
78769f7890
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.116 $ -->
|
||||
<!-- $Revision: 1.117 $ -->
|
||||
<chapter id="language.control-structures">
|
||||
<title>Control Structures</title>
|
||||
|
||||
|
@ -518,6 +518,10 @@ foreach (array_expression as $key => $value)
|
|||
element's key will be assigned to the variable
|
||||
<literal>$key</literal> on each loop.
|
||||
</simpara>
|
||||
<simpara>
|
||||
As of PHP 5, it is possible to
|
||||
<link linkend="language.oop5.iterations">iterate objects</link> too.
|
||||
</simpara>
|
||||
<para>
|
||||
<note>
|
||||
<para>
|
||||
|
|
Loading…
Reference in a new issue