Try something like this (you'll need to populate it afterward):

$this->array = array();

Then populate it with the data.

Mike Frazer

"Andrzej Roszkowski" <[EMAIL PROTECTED]> wrote in 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

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to