Re: [PHP] Tricky array question

2004-04-01 Thread Kelly Hallman
Apr 1 at 8:13pm, Merlin wrote: > I am trying to get continent and country info out of an xml file. There > is a continent element to each country element. Now I do have an array > with the continent info and one with the country info. The goal is to be > able to output all countries sorted after co

RE: [PHP] Tricky array question

2004-04-01 Thread Pablo Gosse
Merlin wrote: > Hi there, > > I am trying to get continent and country info out of an xml file. > There is a continent element to each country element. > > Now I do have an array with the continent info and one with the > country info. The goal is to be able to output all countries sorted > afte

RE: [PHP] Tricky array question

2002-02-05 Thread Niklas Lampén
Ahem... So you want to have a two dimensional variable? "; ?> Is this what you are looking for? Niklas -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: 5. helmikuuta 2002 12:54 To: [EMAIL PROTECTED] Subject: Re: [PHP] Tricky array question This was just an

Re: [PHP] Tricky array question

2002-02-05 Thread Andy
This was just an error in my explenation I ment categories. Meanwhile I tryed var vars, but it does not work for any reason?!?!? My code looks like: $field = $categories[0]."[0]"; echo $field;// returns glacier[0] echo 'var '.$$field.''; // returns bluddy noth

RE: [PHP] Tricky array question

2002-02-05 Thread Niklas Lampén
It should be $category[0] = $glacier; ^--- ERROR in you code Niklas -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: 5. helmikuuta 2002 11:59 To: [EMAIL PROTECTED] Subject: [PHP] Tricky array question Hi there, I have a tricky array questio

Re: [PHP] Tricky array question

2002-02-05 Thread Edward van Bilderbeek - Bean IT
try using something like this: $varname = $categories[0]; echo ${$varname}[0]; Greets, Edward "Andy" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > Hi there, > > I have a tricky array question. > > My app is passing via post a array variable called glacier. Now I