$model => $link) {
> > $modelString .= " CLASS=\"menu\">$model";
> > }
> > }
> > print($makeString . "\n");
> > print($modelString . "\n");
> >
> > (I don't get what you're try
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
7 matches
Mail list logo