Re: Error in foreach?
| From: | Matt M. | Date: | Mon, 10 Jan 2005 21:34:36 +0000 |
| Subject: | Re: Error in foreach? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-206024@lists.php.net to get a copy of this message | ||
> This is in response to the following line:
>
> foreach ($_GET as $key => $value)
is $_GET an array?
when in doubt, print it out
try:
print_r($_GET)
or even check
is_array($_GET)
might be an earlier version of php
http://us2.php.net/manual/en/reserved.variables.php#reserved.variables.get