Hola amigos, ire directo al grando, tengo el siguiente array:
Código PHP:
Ver original(
(
(
[id] => 3
[cat_id] => 1
[course] => categoria en curso
[description] => lrem blo bla ble
[upload_id] => 6
[created] => 2012-04-21 08:13:47
[modified] => 2012-04-21 19:59:50
[slug] => 0
)
(
[id] => 1
[cat] => Categoria de pruebas
[upload_id] => 4
[slug] => Categoria_de_pruebas
)
(
[id] => 6
[name] => tupale-net.jpg
[type] => image/jpeg
[size] => 61156
[created] => 2012-04-21 08:13:47
[modified] => 2012-04-21 08:13:47
)
(
(
[id] => 6
[username] => templario18
[email] => templario18@gmail.com
[firm] => todo es posible con Cake
[created] => 2012-04-21 09:02:06
[modified] => 2012-04-22 16:57:04
(
[id] => 12
[course_id] => 3
[user_id] => 6
)
)
(
[id] => 2
[username] => kalvinmanson
[email] => kalvinmanson@gmail.com
[firm] => Kalvin Manson Titan del Emesen
[created] => 2012-04-21 07:33:07
[modified] => 2012-04-22 16:58:24
(
[id] => 13
[course_id] => 3
[user_id] => 2
)
)
)
)
)
El array principal es el array de curso y tengo dentro de el unos usuarios que pertenencen a ese curso
como podria hacer un foreach para listar solamente los usuarios del curso es decir un foreach que solo tome los datos del array [User] que esta dentro del array curso?