note 70103 deleted from ref.classobj by bobby
| From: | bobby@php.net | Date: | Tue, 03 Oct 2006 17:16:25 +0000 |
| Subject: | note 70103 deleted from ref.classobj by bobby | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-117991@lists.php.net to get a copy of this message | ||
Note Submitter: bporcaro at gmail point com
----
I have this source
<?php
class A
{
var $i = 0;
function A()
{
$this->i = 1;
}
function getI()
{
return $this->i;
}
}
class B
{
function B()
{
}
function getA()
{
$ret = new A();
return $ret;
}
}
$b = new B();
$a = $b->getA();
echo $a->getI();
echo $b->getA()->getI();
?>
but the row '$b->getA()->getI()' is not valid. i can resolved this problem?
thank you and sorry for my english