note 41288 added to control-structures.foreach
| From: | hannes at kuusalu dot edu dot ee | Date: | Mon, 05 Apr 2004 17:04:40 +0000 |
| Subject: | note 41288 added to control-structures.foreach | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-67667@lists.php.net to get a copy of this message | ||
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?
----
Manual Page -- http://www.php.net/manual/en/control-structures.foreach.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41288
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41288&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41288&report=yes
Search -- http://master.php.net/manage/user-notes.php