ahmed24

msg:4535516 | 5:03 pm on Jan 12, 2013 (gmt 0) |
nevermind i've figured it out, just nested a loop within a loop like this:
foreach ($event as $eventDate => $eventArray) {
foreach ($eventArray as $eventDescription) { echo $eventDescription."<br>"; }
}
|
skoff

msg:4536256 | 6:00 pm on Jan 15, 2013 (gmt 0) |
i hope you dont have a lot of data in this array because this could be hard on the server
|
ahmed24

msg:4536427 | 6:40 am on Jan 16, 2013 (gmt 0) |
skoff, i dont have much data in this array. about 5 - 10 lines max. however, i am using this method of foreach within foreach to work on multiple dimensions. i didnt realise this could be hard on the server. any recommendations how i can do the above without a double foreach loop, instead all in one loop? thanks
|
skoff

msg:4536522 | 1:05 pm on Jan 16, 2013 (gmt 0) |
do you need to loop through all you records in you array or when you get the date you want it stops?
|
|