Loops/Foreach: Difference between revisions

(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}}==
Anonymous user