note 41288 rejected from control-structures.foreach by nlopess
| From: | nlopess@php.net | Date: | Fri, 09 Apr 2004 19:35:29 +0000 |
| Subject: | note 41288 rejected from control-structures.foreach by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-67921@lists.php.net to get a copy of this message | ||
Note Submitter: hannes@kuusalu.edu.ee
----
I found that one from a script. Cool trick.
<?php
$foo[0] = "one";
$foo[1] = "two";
foreach ( $foo as $value):
echo "I'm in a loop: ".$value."<br>\n";
endforeach;
?>
Under which category is this thing documented in php.net?