RE: [PHP-WIN] Question on using an array
| From: | Asendorf, John | Date: | Thu, 01 Mar 2001 13:26:10 +0000 |
| Subject: | RE: [PHP-WIN] Question on using an array | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-5768@lists.php.net to get a copy of this message | ||
I kind of snipped that out of the sample... sorry... was trying to make
the sample as easy to read as possible...
---------------------
John Asendorf - jasendorf@lcounty.com
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Aut insanit homo, aut versus facit
> -----Original Message-----
> From: Ernest E Vogelsinger [mailto:ebird@1-at-web.at]
> Sent: Wednesday, February 28, 2001 6:38 PM
> To: Asendorf, John
> Cc: Php-Windows (E-mail)
> Subject: Re: [PHP-WIN] Question on using an array
>
>
> At 16:55 28.02.2001, Asendorf, John said:
> --------------------[snip]--------------------
> >I just added the last three entries on the array which all
> have the same key
> >(could be my obvious problem...) My problem is that the
> while loop only hits
> >the LAST of the three 'links.php' entry...
> >
> >Any suggestions on how to force it to hit all of those entries?
> >pleasepleasepleaseplease don't tell me I have to rewrite the
> whole thing
> >with the keys/values reversed...
> --------------------[snip]--------------------
>
> You've already got excellent answers (you only have _one_
> "links.php" key
> in the array). I wanted to add that you should put a "reset($array)"
> statement before any "each($array)" loop to make sure the loop will
> reliably start at the very first element.
>
>
> ...ebird
>
> >O Ernest E. Vogelsinger
> (\) http://www.1-at-web.at/
> ^ ICQ# 13394035
>