John,

OK, I won't tell you but I think you've already realised that you probably will have 
to anyway.
:-)

Wouldn't it be easier (not to mention extensible) to put this in a database? Or r u 
just testing?

Ignatius


> -----Original Message-----
> From: Asendorf, John [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 1 March 2001 02:55
> To: Php-Windows (E-mail)
> Subject: [PHP-WIN] Question on using an array
> 
> 
> I have an array which looks something like this:
> 
> $arr_links = array('is/' => 'Information Systems'
>                  ,'hr/' => 'Human Resources'
>                  ,'planning/' => 'Planning Commission'
>                  ,'boe/' => 'Board of Elections'
>                  ,'vsc/' => 'Veterans\' Commission'
>                  ,'links.php' => 'Park District '
>                  ,'links.php' => 'CSEA'
>                  ,'links.php' => 'County Sheriff');
> 
> and a directory builder that uses a while loop like this
> 
> while ( list($key, $val) = each($arr_links) ) {
>       
>      //do a lot of stuff
> 
> }
> 
> 
> 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...
> 
> thanks in advance,
> 
> John
> 
> 
> 
> ---------------------
> John Asendorf - [EMAIL PROTECTED]
> Web Applications Developer
> http://www.lcounty.com - NEW FEATURES ADDED DAILY!
> Licking County, Ohio, USA
> 740-349-3631
> Aut insanit homo, aut versus facit
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: 
> [EMAIL PROTECTED]
> 

Reply via email to