c: [EMAIL PROTECTED]
> Subject: Fwd: [PHP] Stuck on array, need a little help.
>
>
> Hmm. Mail didn't go through, trying again...
>
> Begin forwarded message:
>
> >
> > On Tuesday, December 4, 2001, at 09:16 AM, Brian V Bonini wrote:
> >
> >> I
x27;Huez BuenosAries Tourmalet
> Moots VaMoots
> as it should...
>
> But, I need it to produce:
> Trek LeMond Moots
> Trek 5200 Zurich Chambery Alpe d'Huez BuenosAries Tourmalet VaMoots
>
> And I need to get the value of $sub_val in the nested "whi
>$sub_val\n";
>
>
> }
> }
> }
>
> alternatively, if you know specifically what you want you could
> do this ...
>
> if ($cat == 'bikes' && $sub_cat != 'Road') {
> while (list($val, $key)=each($bikes[$sub_cat][&
gt; -Original Message-
>> From: Jim Musil [mailto:[EMAIL PROTECTED]]
>> Sent: Friday, November 30, 2001 4:54 PM
>> To: [EMAIL PROTECTED]
>> Cc: [EMAIL PROTECTED]
>> Subject: Re: [PHP] Stuck on array, need a little help.
>>
>>
>> Your
Well, it's saying that because $key is an array;) For example,
"Mountain" is a $sub_cat:
> "Mountain" => array(
> "Trek" => array(
> "Fuel 100" => "mountain.php?brand=tfuel90",
> "Fuel 90" => "mountain.php?brand=schhg"
>
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Stuck on array, need a little help.
>
>
> Your script is working like you are asking it to ...
>
>
> Change ...
>
> while (list($val, $key)=each($bikes[$sub_cat])) {
>
> To ...
>
> while (list($k
Your script is working like you are asking it to ...
Change ...
while (list($val, $key)=each($bikes[$sub_cat])) {
To ...
while (list($key, $val)=each($bikes[$sub_cat])) {
and it should work like you WANT it to ...
>I'm stuck. $key returns "Array" how can I get at each
>level of th
I'm stuck. $key returns "Array" how can I get at each
level of this array?
if ($cat == 'bikes' && $sub_cat != 'Road') {
while (list($val, $key)=each($bikes[$sub_cat])) {
echo "\n";
echo "$val\n";
$bikes = array(
"Road" => array(
"Trek" => array(
8 matches
Mail list logo