Array of classes
| From: | Andrzej Roszkowski | Date: | Wed, 31 Oct 2001 08:04:41 +0000 |
| Subject: | Array of classes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-72991@lists.php.net to get a copy of this message | ||
Hi!
I have to create array of classes.
When I do it this way:
f add($sth)
$this->array[] = $sth;
it doesn't work :( when i'm trying to get class from there it says that this is not an
object.
How to do it rigth way?
------------------------------------------------------------------------
Code reviews are like sex, just anyone can do it, but skill and training
can make you a lot better at it." - LJ
Thomas