Re: Arrays/OOP
| From: | Michael Kimsal | Date: | Tue, 05 Mar 2002 18:58:06 +0000 |
| Subject: | Re: Arrays/OOP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-87314@lists.php.net to get a copy of this message | ||
Joshua E Minnie wrote:
while(!feof($fp)) {
$temp = fgetcsv($fp, 1024, ":");
$event_list[$i] = $event_object->init($temp[0],$temp[1],$temp[2],$temp[3],$temp[4],$temp[5],$temp[6],$temp[7],$temp[8]);
$i++;
}
Without seeing more of the code, I can't say for certain, but I suspect that instead of $event_object->init you need to call $this->init. Does that do the trick?
Wait - I looked above. $event_object = new event(). What is the class definition for "event"?
Could you send more code?
Michael Kimsal
http://www.phphelpdesk.com
734-480-9961