przyklad
[country]{area} [country]{code} [country]{languages}[languagecode]
a tlumacza jak to czytac tak:
Notation: Items between '[' and ']' are array elements. The name between these brackets is an indication of what is listed. Items between '{' and '}' are struct elements. The name between these brackets is the key. If the key starts with '$', the represented value should be used. Example: The description '{$country}{languages}[languagecode]' can be read as follows: the result is a struct where each key is a hotel id (so '10340' could be a key). The value for each key is another struct of which a valid key is 'supported_languages'. The value for that key is an array with different language codes.
Mimo tych wyjasnien nie moge poradzic sobie z odczytem a wlasciwie z odpowiednim wyswietleniem wyniku. Jak powinien wygladac zapis tablicy zawierajacej tablice struktur

Moj kod wyglada tak
<?php include_once("xmlrpc.inc"); $methodName = "bookings.getCountryDetails"; //init xml-rpc message $f=new xmlrpcmsg($methodName, $struct); $client=new xmlrpc_client("/xml-rpc", "distribution-xml.booking.com", 80); //send msg $xmlResp=$client->send($f); $country = $xmlResp->value(); ?>
I tu sie zatrzymuje.... Otrzymana zmienna $country jest tablica... Nie wiem jak uzywajac petli foreach dotrzec do 'najglebiej' ukrytej informacji (czyli wartosci zmiennej struktury).
Oczywiscie posilkowalem sie googlem i jego znaleziskami jednak znajdywalem wylacznie najprostsze przykaldy. W gruncie rzeczy rozchodzi sie o sam zapis zmiennej
Pozdrawiam