Tricky array question
| From: | Merlin | Date: | Thu, 01 Apr 2004 18:13:21 +0000 |
| Subject: | Tricky array question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-182054@lists.php.net to get a copy of this message | ||
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:
$results[]->countryContinent
$results[]->countryName
I tryed to group those values, to do array searches and more, but somehow
it looks like that there must be a way more easy way to do this.
Maybe someone has a good hint how to solve that.
Thanx for any help,
merlin