Array of Classes

From: Date: Mon, 06 Oct 2003 17:41:22 +0000
Subject: Array of Classes
Groups: php.general 
Request: Send a blank email to php-general+get-165212@lists.php.net to get a copy of this message
Greetings.. Doing some persistant connection socket-based PHP stuff and I'm trying to figure out a few things: 1) How can I create an array of classes so they could be referenced, for instance: $array[$uniqueID][$class->var] = 10; ? 2) Would it instantiate when that particular element was used and would the constructor run at that point? 3) Any way to dispose/destroy of an object once it's done being used to free up the resources? Thanks, Rob

« previous php.general (#165212) next »