Re: Problem with each()
| From: | Jeff Carnahan | Date: | Fri, 06 Apr 2001 04:19:58 +0000 |
| Subject: | Re: Problem with each() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47396@lists.php.net to get a copy of this message | ||
In article <B6F2A4D6.626C%dave@dminor.com>, dave@dminor.com says...
}print("key: $each_array[0] value: $each_array[1]");
}
}When I get to an array within HTTP_POST_VARS, it prints:
}key: var_name value: Array
}
}ok, but when I try to do an each on that array: (and maybe this is where I
}am wrong)
}$each_array2 = each($each_array[0])
}
There's your problem.. Your trying to do each(..) on, what in your
example above, is set to "var_name" ...
Try changing that to:
$each_array2 = each($each_array[1]);
It's the second variable in your example that's an Array, (or it may
just be a string set to the word "Array".. Who knows?.. =)
--
Jeff Carnahan - jcarnahan@networq.com