Ver Mensaje Individual
  #6 (permalink)  
Antiguo 13/06/2012, 16:43
Avatar de masterpuppet
masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 3 meses
Puntos: 845
Respuesta: Bucle que Recorre Array

Puedes utilizar iterators, algo asi:

Código PHP:
Ver original
  1. $it = new RecursiveIteratorIterator(
  2.         new RecursiveArrayIterator($array),
  3.         RecursiveIteratorIterator::CHILD_FIRST
  4.     );
  5. foreach($it as $key => $node){
  6.     if('text' === $key){
  7.         echo $node . PHP_EOL;
  8.     }  
  9. }

Saludos.
__________________
http://es.phptherightway.com/
thats us riders :)