Classes : Linked Lists vs Arrays?
| From: | Johnny Nguyen | Date: | Wed, 25 Jul 2001 22:40:43 +0000 |
| Subject: | Classes : Linked Lists vs Arrays? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-59633@lists.php.net to get a copy of this message | ||
I'm looking for opinions on using Linked Lists vs Arrays in PHP.
As a little background:
I'm developing a calendar that works with LDAP.
I've got the following classes defined.
Event and Calendar
Calendar has methods
displayMonthView($timestamp)
displayWeekView($timestamp)
displayDayView($timestamp)
among others...
and I'm trying to decide if my Calendar class should have a LinkedList or an
Array of Events?
Within displayDayView(), I'd like to display all events for that day from
the collection of events.
Thanks In Advanced.
Johnny