Thank you for the suggestions Paul and Adam.
The reset() function was the last thing I needed.
What I created was a script that created a table of all the variables in
$HTTP_POST_VARS, if any of them are arrays or objects, it creates another
table listing the values of that array, continuing on for any amount of
array or object nesting that exists within the variables. All the tables
are hyperlinked so you can easily traverse parent/child tables of all your
variable elements. I didn't know if there was anything out right now that
did that.
If there is, could you give me a url to a script so I can take a look at it?
if anyone is interested in my script, email jwickard@l...
-Joel
----- Original Message -----
From: <paul@d...>
To: "professional php" <pro_php@p...>
Sent: Friday, October 19, 2001 10:43 AM
Subject: [pro_php] Re: while:list:each: loop problem
> After skimming the notes on foreach(), I would still recommend reset()
> due to some negative comments about foreach() and the fact that code has
> already been written which would only require the addition of a single
> function instead of being rewritten. (Was that a run-on sentence or
> what?)
>
>
> Adam Lang wrote:
> >
> > With while you need to use reset() to reset the pointer.
> >
> > If you use foreach(), it automatically resets. plus it looks a little
> > cleaner.
> >
> > Only for PHP 4, though (reset should work in PHP 3).
> >
> > http://www.php.net/manual/en/control-structures.foreach.php
>
>