Object refferences
| From: | ����� �������� | Date: | Fri, 25 Aug 2000 12:12:53 +0000 |
| Subject: | Object refferences | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-13652@lists.php.net to get a copy of this message | ||
Hi.
I have a following problem:
i need an array of N elements,
each of them is Class Object
example:
in line marked with ******** PHP 3 raised "Parse error.". Why ?????
class Child
{
var $Name;
}
class Parent
{
var $Childs;
function Parent
{
for ( $i=0; $i<10; $i++ )
{
$this->Childs[$i] = new Child;
$this->Childs[$i]->Name = "Name"; - ************
}
}
}
Thanks
Alexander Panko
panki@lenmedsnab.ru
ICQ: 9655554