php-general | 2005051
Date: 05/05/05
- Next message: Aaron Gould: "Re: [PHP] PHP mail"
- Previous message: James: "[PHP] php/osx and firebird"
- Next in thread: Mike Johnson: "RE: [PHP] calling a derived static method from a base class"
- Maybe reply: Mike Johnson: "RE: [PHP] calling a derived static method from a base class"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
<code>
class Base {
static function f() {
self::g();
}
static function g() {
print("Base\n");
}
}
class Derived extends Base {
static function g() {
print("Derived\n");
}
}
Derived::f();
</code>
I want that to print "Derived", but it prints "Base" instead. How can I get
it to do what I want?
Thank for the help.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Aaron Gould: "Re: [PHP] PHP mail"
- Previous message: James: "[PHP] php/osx and firebird"
- Next in thread: Mike Johnson: "RE: [PHP] calling a derived static method from a base class"
- Maybe reply: Mike Johnson: "RE: [PHP] calling a derived static method from a base class"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

