On 27 Jan 2005 15:16:31 -0800,
ub****@gmail.com wrote:
Does for each for on multidimensional arrays? For example, if one
element of $in is $course_list and I want to echo all everything in
course_list
foreach operates on arrays, and only to one level; if the array contains
arrays, foreach doesn't care - the loop index will just be set to an array that
is that dimension of the array.
You could use is_array() if you want to tell if you've hit another dimension
of the array.
--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool