note 93361 rejected from language.oop5 by danbrown
| From: | danbrown@php.net | Date: | Sat, 05 Sep 2009 18:51:41 +0000 |
| Subject: | note 93361 rejected from language.oop5 by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-160240@lists.php.net to get a copy of this message | ||
Note Submitter: r dot anerg at gmail dot com
----
<?php
class A {
function test() {
echo '1';
}
function go() {
B::btest();
}
}
class B {
function btest() {
$this->test();
}
}
$a = new A();
$a->go();
?>
why it's output 1???