Re: array of classes
| From: | Justin Garrett | Date: | Mon, 08 Oct 2001 15:46:20 +0000 |
| Subject: | Re: array of classes | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70366@lists.php.net to get a copy of this message | ||
class foo{
var $value;
}
$objects[1] = new foo;
$objects[2] = new foo;
$objects[1]->value = 2;
$objects[2]->value = "bar";
--
Justin Garrett
"L Melville" <lee.melville@btopenworld.com> wrote in message
news:3bc1b039.3819592@news.php.net...
> Hi,
>
> Is it possible to create an array of a class, if so can anyone give a
> quick example.
>
> thanks in advance
> lee
>