Re: [PHP] array/iteration issue!!

2008-11-27 Thread Robert Cummings
On Thu, 2008-11-27 at 17:31 -0800, bruce wrote: hi. i have the following test multidiminsional array. i'm trying to figure out how to iterate through the array, to produce something like foo, physics, sss foo, physics, sffgg foo, english, sss foo, english, sffgg can't quite seem to

RE: [PHP] array/iteration issue!!

2008-11-27 Thread bruce
iterate through this..?? thanks -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Thursday, November 27, 2008 6:18 PM To: bruce Cc: 'PHP General list' Subject: Re: [PHP] array/iteration issue!! On Thu, 2008-11-27 at 17:31 -0800, bruce wrote: hi. i have

RE: [PHP] array/iteration issue!!

2008-11-27 Thread Robert Cummings
On Thu, 2008-11-27 at 18:55 -0800, bruce wrote: hey robert.. ok.. so if i changed the array to have a dept1, and a dept2 $a=array(college= foo, dept1=array(dept= physics, class=array(class1=sss,class2=sffgg) ), dept2=array(dept= english,

RE: [PHP] array/iteration issue!!

2008-11-27 Thread bruce
] array/iteration issue!! On Thu, 2008-11-27 at 18:55 -0800, bruce wrote: hey robert.. ok.. so if i changed the array to have a dept1, and a dept2 $a=array(college= foo, dept1=array(dept= physics, class=array(class1=sss,class2=sffgg) ), dept2=array(dept= english, class

RE: [PHP] array/iteration issue!!

2008-11-27 Thread Robert Cummings
On Thu, 2008-11-27 at 19:36 -0800, bruce wrote: hey robert!! thanks. and yeah, you're right, it's not the best.. so tell me, given that i'm ripping through this on the fly, and i can have the structure in any way i choose. this is just to simulate/populate some test tbls.. what's a better

Re: [PHP] array/iteration issue!!

2008-11-27 Thread Micah Gersten
Robert Cummings wrote: On Thu, 2008-11-27 at 19:36 -0800, bruce wrote: hey robert!! thanks. and yeah, you're right, it's not the best.. so tell me, given that i'm ripping through this on the fly, and i can have the structure in any way i choose. this is just to simulate/populate some

RE: [PHP] array/iteration issue!!

2008-11-27 Thread bruce
much props guys!!! thanks!! -Original Message- From: Micah Gersten [mailto:[EMAIL PROTECTED] Sent: Thursday, November 27, 2008 8:23 PM To: Robert Cummings Cc: bruce; 'PHP General list' Subject: Re: [PHP] array/iteration issue!! Robert Cummings wrote: On Thu, 2008-11-27 at 19:36 -0800

Re: [PHP] array/iteration issue!!

2008-11-27 Thread Robert Cummings
On Thu, 2008-11-27 at 22:22 -0600, Micah Gersten wrote: This is actually a much smaller data structure. $colleges = array ( 'Blah Blah University' = array ( 'physics' = array ( 'sss', 'sffgg',

RE: [PHP] array/iteration issue!!

2008-11-27 Thread bruce
Cummings [mailto:[EMAIL PROTECTED] Sent: Thursday, November 27, 2008 8:40 PM To: Micah Gersten Cc: bruce; 'PHP General list' Subject: Re: [PHP] array/iteration issue!! On Thu, 2008-11-27 at 22:22 -0600, Micah Gersten wrote: This is actually a much smaller data structure. $colleges = array