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

[PHP] Tricky array question

2004-04-01 Thread Merlin
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 after continents. So I do have: $res

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
TECTED]] > Sent: 5. helmikuuta 2002 11:59 > To: [EMAIL PROTECTED] > Subject: [PHP] Tricky array question > > > Hi there, > > I have a tricky array question. > > My app is passing via post a array variable called glacier. Now I am > checking for the content of this array. B

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

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

[PHP] Tricky array question

2002-02-05 Thread Andy
Hi there, I have a tricky array question. My app is passing via post a array variable called glacier. Now I am checking for the content of this array. Because there are more of those arrays, I am getting all the names out of a db. How is it possible to get the value and keep the name of the arr