Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/05/2011, 12:09
gutibs
 
Fecha de Ingreso: mayo-2006
Mensajes: 124
Antigüedad: 18 años, 7 meses
Puntos: 0
array multidimensional

Buenas tardes foreros, necesito una ayuda por que mi manejo de php no es el mejor
Hago una consulta a una pagina y recibo una respuesta en json, la paso a u array, y de ese array necesito extraer dos o tres datos nomas, me pueden decir como hago?

este es el array, y les digo lo que necesito.

Gracias[CODE]Array ( [0] => Array ( [0] => stdClass Object ( [politics] => Array ( [0] => stdClass Object ( [type] => admin2 [code] => wls [name] => Wales [friendly_type] => country ) [1] => stdClass Object ( [type] => constituency [code] => w10 [name] => Cardiff Central [friendly_type] => constituency ) [2] => stdClass Object ( [type] => admin5 [code] => ukl [name] => Wales [friendly_type] => city ) [3] => stdClass Object ( [type] => constituency [code] => w39 [name] => Cardiff West [friendly_type] => constituency ) [4] => stdClass Object ( [type] => admin8 [code] => 00pt [name] => Caerdydd - Cardiff [friendly_type] => city ) [5] => stdClass Object ( [type] => admin4 [code] => uk96 [name] => Cardiff [friendly_type] => state ) [6] => stdClass Object ( [type] => constituency [code] => w11 [name] => Cardiff North [friendly_type] => constituency ) [7] => stdClass Object ( [type] => postal_code [code] => CF143HH [name] => CF143HH [friendly_type] => postal code ) [8] => stdClass Object ( [type] => uk_nhs_area [code] => W00Q99 [name] => W00Q99 [friendly_type] => nhs area ) [9] => stdClass Object ( [type] => admin10
Código:
 => 00PTNQ [name] => Gabalfa [friendly_type] => council ward ) ) [location] => stdClass Object ( [longitude] => -3.197771 [latitude] => 51.50409 ) ) ) )
Lo que encesito sacar es: postal_code [code] => CF143HH y uk96 [name] => Cardiff

Muchas gracias