Ver Mensaje Individual
  #3 (permalink)  
Antiguo 17/09/2013, 17:15
Avatar de guardarmicorreo
guardarmicorreo
 
Fecha de Ingreso: noviembre-2012
Ubicación: Córdoba
Mensajes: 1.153
Antigüedad: 11 años, 6 meses
Puntos: 84
Respuesta: Object(stdClass) devuelto por la API de Twitter

No entiendo muy bien a qué te refieres con recursividad.

¿Puedes explicármelo u ofrecerme un enlace?

Iba a editar el post para añadir un ejemplo real de estructura pero con los valores cambiados por ****, pero te me adelantastes :D

Código PHP:
Ver original
  1. object(stdClass)#1 (5) {
  2.  ["users"]=>
  3.   array(20) {
  4.     [0]=>
  5.     object(stdClass)#2 (38) {
  6.      ["id"]=>
  7.       int(****)
  8.       ["id_str"]=>
  9.       string(10) "****"
  10.       ["name"]=>
  11.       string(15) "****"
  12.       ["screen_name"]=>
  13.       string(11) "****"
  14.       ["location"]=>
  15.       string(0) ""
  16.       ["description"]=>
  17.       string(0) ""
  18.       ["url"]=>
  19.       NULL
  20.       ["entities"]=>
  21.       object(stdClass)#3 (1) {
  22.        ["description"]=>
  23.         object(stdClass)#4 (1) {
  24.          ["urls"]=>
  25.           array(0) {
  26.           }
  27.         }
  28.       }
  29.       ["protected"]=>
  30.       bool(false)
  31.       ["followers_count"]=>
  32.       int(****)
  33.       ["friends_count"]=>
  34.       int(1)
  35.       ["listed_count"]=>
  36.       int(1)
  37.       ["created_at"]=>
  38.       string(30) "Sun Apr 21 17:01:38 +0000 2013"
  39.       ["favourites_count"]=>
  40.       int(0)
  41.       ["utc_offset"]=>
  42.       NULL
  43.       ["time_zone"]=>
  44.       NULL
  45.       ["geo_enabled"]=>
  46.       bool(false)
  47.       ["verified"]=>
  48.       bool(false)
  49.       ["statuses_count"]=>
  50.       int(0)
  51.       ["lang"]=>
  52.       string(2) "es"
  53.       ["contributors_enabled"]=>
  54.       bool(false)
  55.       ["is_translator"]=>
  56.       bool(false)
  57.       ["profile_background_color"]=>
  58.       string(6) "C0DEED"
  59.       ["profile_background_image_url"]=>
  60.       string(48) "****"
  61.       ["profile_background_image_url_https"]=>
  62.       string(49) "****"
  63.       ["profile_background_tile"]=>
  64.       bool(false)
  65.       ["profile_image_url"]=>
  66.       string(89) "****"
  67.       ["profile_image_url_https"]=>
  68.       string(91) "****"
  69.       ["profile_link_color"]=>
  70.       string(6) "0084B4"
  71.       ["profile_sidebar_border_color"]=>
  72.       string(6) "C0DEED"
  73.       ["profile_sidebar_fill_color"]=>
  74.       string(6) "DDEEF6"
  75.       ["profile_text_color"]=>
  76.       string(6) "333333"
  77.       ["profile_use_background_image"]=>
  78.       bool(true)
  79.       ["default_profile"]=>
  80.       bool(true)
  81.       ["default_profile_image"]=>
  82.       bool(false)
  83.       ["following"]=>
  84.       bool(true)
  85.       ["follow_request_sent"]=>
  86.       bool(false)
  87.       ["notifications"]=>
  88.       bool(false)
  89.     }

Evidentemente es solo un trozo de un largo texto que mide como 20 veces este trozo.

Gracias!
__________________
Ayúdame a hacerlo por mi mismo.