note 70131 added to language.oop5.overloading
| From: | alexandr-evtushenko at yandex dot ru | Date: | Wed, 04 Oct 2006 16:02:28 +0000 |
| Subject: | note 70131 added to language.oop5.overloading | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-118031@lists.php.net to get a copy of this message | ||
why this code does't work? how i can correct it?
$A = new a;
class d {
function e() {
print "eee";
}
}
class b {
function b() {
global $A;
$A->d->e();
}
function c() {
print "sss";
}
}
class a {
function __get($v) {
$this->$v = new $v;
return $this->$v;
}
}
$A->b->c();
----
Server IP: 195.248.191.91
Probable Submitter: 213.130.24.67
----
Manual Page -- http://www.php.net/manual/en/language.oop5.overloading.php
Edit -- https://master.php.net/note/edit/70131
Del: integrated -- https://master.php.net/note/delete/70131/integrated
Del: useless -- https://master.php.net/note/delete/70131/useless
Del: bad code -- https://master.php.net/note/delete/70131/bad+code
Del: spam -- https://master.php.net/note/delete/70131/spam
Del: non-english -- https://master.php.net/note/delete/70131/non-english
Del: in docs -- https://master.php.net/note/delete/70131/in+docs
Del: other reasons-- https://master.php.net/note/delete/70131
Reject -- https://master.php.net/note/reject/70131
Search -- https://master.php.net/manage/user-notes.php