Anonymous user
Loops/Foreach: Difference between revisions
→{{header|PHP}}
(add UNIX Shell from Loop Structures) |
|||
Line 346:
echo "\$collect[$key] = $i\n";
}</lang>
<code>foreach</code> can also iterate over objects. By default it iterates over all visible fields of an object.
=={{header|Pop11}}==
|