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
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
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
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
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
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
6 matches
Mail list logo