note 23023 rejected from language.oop by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Fri, 04 Oct 2002 00:29:27 +0000 |
| Subject: | note 23023 rejected from language.oop by jmcastagnetto | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-37648@lists.php.net to get a copy of this message | ||
<?
class testClass
{
var $a;
function printa()
{
echo $this->a;
}
}
$obj[10] = new testClass;
$obj[0]->a = 4;
$obj[0]->printa();
?>
why won't this work?