Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/10/2010, 12:52
American2010
 
Fecha de Ingreso: abril-2003
Mensajes: 1.129
Antigüedad: 21 años
Puntos: 34
Recorriendo un array

Hola gente, vengo con una consulta seguramente muy básica, pero es que nunca me he llevado muy bien con los arrays.

Tengo uno que me devuelve datos llegados desde la Twitter API

Es así.

Código:
	  Array
(
    [0] => Array
        (
            [created_at] => Wed Oct 06 18:48:02 +0000 2010
            [in_reply_to_status_id] => 
            [truncated] => 
            [in_reply_to_screen_name] => 
            [retweeted] => 
            [source] => web
            [contributors] => 
            [place] => 
            [coordinates] => 
            [user] => Array
                ([listed_count] => 658
                    [verified] => 1
                    [notifications] => 
                    [profile_background_color] => C0DEED
                    [description] => ESPN Journalist.
Baseball Play by Play/Analyst/Field Reporter
                    [follow_request_sent] => 
                    [lang] => en
                    [profile_background_image_url] => http://s.twimg.com/a/1285876174/images/themes/theme1/bg.png
                    [created_at] => Tue Mar 09 14:04:34 +0000 2010
                    [profile_image_url] => http://a2.twimg.com/profile_images/1134014030/Dos_en_Base_2_normal.jpg
                    [location] => Bristol, CT
                    [profile_text_color] => 333333
                    [profile_background_tile] => 
                    [followers_count] => 21825
                    [screen_name] => GuillermoCelis
                    [following] => 1
                    [profile_link_color] => 0084B4
                    [show_all_inline_media] => 
                    [friends_count] => 88
                    [statuses_count] => 3725
                    [profile_sidebar_fill_color] => DDEEF6
                    [time_zone] => Central Time (US & Canada)
                    [favourites_count] => 0
                    [protected] => 
                    [contributors_enabled] => 
                    [profile_sidebar_border_color] => C0DEED
                    [name] => Guillermo Celis
                    [geo_enabled] => 1
                    [id] => 121437935
                    [profile_use_background_image] => 1
                    [utc_offset] => -21600
                    [url] => 
                )

            [retweet_count] => 
            [favorited] => 
            [id] => 26575889435
            [geo] => 
            [in_reply_to_user_id] => 
            [text] => En 2:10 horas: Reds (Edinson Vólquez) vs. Phillies (Roy Halladay).
        )

    [1] => Array
        (
            [created_at] => Wed Oct 06 18:47:36 +0000 2010
            [in_reply_to_status_id] => 
            [truncated] => 
            [in_reply_to_screen_name] => 
            [retweeted] => 
            [source] => ÜberTwitter
            [contributors] => 
            [place] => 
            [coordinates] => 
            [user] => Array
                ([listed_count] => 28115
                    [notifications] => 
                    [profile_background_color] => 050506
                    [description] => 7-time Tour de France winner, full time cancer fighter - LIVESTRONG!
                    [lang] => en
                    [profile_background_image_url] => http://a1.twimg.com/profile_background_images/3689574/DSC_0001.jpg
                    [created_at] => Mon Oct 13 20:59:15 +0000 2008
                    [followers_count] => 2661007
                    [profile_image_url] => http://a3.twimg.com/profile_images/1095835383/aa4cfafc-b51c-4be8-8625-421861db4058_normal.png
                    [location] => Austin, TX
                    [profile_text_color] => 0e0b0b
                    [show_all_inline_media] => 
                    [profile_background_tile] => 1
                    [friends_count] => 189
                    [screen_name] => lancearmstrong
                    [statuses_count] => 5794
                    [following] => 1
                    [profile_link_color] => 0e9ec8
                    [favourites_count] => 4
                    [contributors_enabled] => 
                    [profile_sidebar_fill_color] => 403f46
                    [geo_enabled] => 
                    [time_zone] => Central Time (US & Canada)
                    [protected] => 
                    [profile_sidebar_border_color] => f1f03b
                    [name] => Lance Armstrong
                    [verified] => 1
                    [id] => 16727535
                    [follow_request_sent] => 
                    [profile_use_background_image] => 
                    [utc_offset] => -21600
                    [url] => http://www.livestrong.org
                )

            [retweet_count] => 
            [favorited] => 
            [id] => 26575862116
            [geo] => 
            [in_reply_to_user_id] => 
            [text] => Happy birthday @knollio!!!
        )

¿Cómo genero un 'foreach' para ir mostrando, por ejemplo [0][text] en el siguiente paso del foreach el [1][text] etc etc.

Gracias. Se que es algo muy básico, pero en esto toco de oído.

Creo que sabría como hacerlo si yo le digo, ese array tiene X campos, pero no se como hacer que lo recorra hasta agotar los resultados.
__________________
elGastronomo