note 70103 added to ref.classobj
| From: | bporcaroatgmailpointcom at osu1 dot php dot net | Date: | Tue, 03 Oct 2006 14:56:27 +0000 |
| Subject: | note 70103 added to ref.classobj | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-117981@lists.php.net to get a copy of this message | ||
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
----
Server IP: 213.92.11.19
Probable Submitter: 217.169.121.13 (proxied: 1.1 TELPRX003RM001)
----
Manual Page -- http://www.php.net/manual/en/ref.classobj.php
Edit -- https://master.php.net/note/edit/70103
Del: integrated -- https://master.php.net/note/delete/70103/integrated
Del: useless -- https://master.php.net/note/delete/70103/useless
Del: bad code -- https://master.php.net/note/delete/70103/bad+code
Del: spam -- https://master.php.net/note/delete/70103/spam
Del: non-english -- https://master.php.net/note/delete/70103/non-english
Del: in docs -- https://master.php.net/note/delete/70103/in+docs
Del: other reasons-- https://master.php.net/note/delete/70103
Reject -- https://master.php.net/note/reject/70103
Search -- https://master.php.net/manage/user-notes.php