Hola amigos, verán tengo el siguiente array:
Código PHP:
Array
(
[0] => Array
(
[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
[CoursesUser] => Array
(
[id] => 40
[course_id] => 3
[user_id] => 7
)
)
[1] => Array
(
[id] => 2
[cat_id] => 2
[course] => curso con imagen
[description] =>
cursos de nyud learningxv dfg dfg
[upload_id] => 5
[created] => 2012-04-21 08:10:32
[modified] => 2012-04-21 20:02:10
[slug] => 0
[CoursesUser] => Array
(
[id] => 41
[course_id] => 2
[user_id] => 7
)
)
)
Y quiero determinar si en ese array existe course_id con valor 2 por ejemplo.
Pero considerando que el tamaño del array puede cambiar?