iginal Message-
> From: Asendorf, John [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 01, 2001 8:52 AM
> To: [EMAIL PROTECTED]; Php-Windows (E-mail)
> Subject: RE: [PHP-WIN] Question on using an array
>
>
> I used Michael's suggestion and came up with something th
ile ( list($key, $val) = each($arr_links) ) {
if ( is_array( $val ) ) {
while ( list($key1, $val1) = each($val) ) {
echo " \n\n$val1\n\n \n";
}
}
else {
//
insanit homo, aut versus facit
> -Original Message-
> From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED]]
> 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
> 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] Quest
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 su
, 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/' => 'Info
You could try accesing by value number, instead of using value index
name. Anyway, I fear that what you're doing is quite illegal, and what
is really happening is that when you assign the first 'links.php', it
is overwritten by the second assignment, which is in turn overwritten
by the third. Try
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\' C