class A {
function foo() {
$this->foo = 1;
}
}
class B {
function bar() {
A::foo();
$this->bar = 1;
}
}
$obj = new B();
$obj->bar();
var_dump($obj);
object(B)#1 (2) {
["foo"]=>
int(1)
["bar"]=>
int(1)
}
What the...?
コメント (1)
きょうは、機能するはずだったみたい。
投稿者: BlogPetのリンク | 2007年11月16日 10:35
日時: 2007年11月16日 10:35