Re: Question on using an array

From: Date: Wed, 28 Feb 2001 23:37:35 +0000
Subject: Re: Question on using an array
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-5765@lists.php.net to get a copy of this message
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

« previous php.windows (#5765) next »