note 76449 deleted from control-structures.foreach by felipe
| From: | felipe@php.net | Date: | Sun, 09 Dec 2007 15:58:04 +0000 |
| Subject: | note 76449 deleted from control-structures.foreach by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133067@lists.php.net to get a copy of this message | ||
Note Submitter: tquick at pixelated dot com
----
It is worth noting that the following code works, and has helped me out quite a few times; not to
mention saved time.
This may be obvious to some, but it just dawned on me that the following works:
<?php
foreach($_GET as $x) {
echo "$x <br />";
}
?>
Lets say we named this file, index.php
We put into the address bar:
/index.php?name=x&page=y&other=z
The code would output:
x
y
z