Re: [PHP] Problem with each()

2001-04-06 Thread David Minor
well, that didn't work either. Same error. Show me where my thinking is wrong, if I've got an array ($HTTP_POST_VARS) in this case. and $HTTP_POST_VARS[var_list] is an array and the first entry in the array. if I did $x = each($HTTP_POST_VARS) in a while loop, the first combination that is ret

Re: [PHP] Problem with each()

2001-04-05 Thread Jeff Carnahan
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] 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_ar

[PHP] Problem with each()

2001-04-05 Thread David Minor
I recall reading this somewhere in the past, but can't find the answer after looking for a couple of hours. I am getting this warning: Warning: Variable passed to each() is not an array or object in myfile.inc on line 1 Here's what I'm doing: While doing: $each_array = each($HTTP_POST_VARS) pri