note 24323 deleted from function.get-class by didou
| From: | didou@php.net | Date: | Thu, 03 Jul 2003 11:26:42 +0000 |
| Subject: | note 24323 deleted from function.get-class by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-51426@lists.php.net to get a copy of this message | ||
Note Submitter: oliver DOT pliquett @mediagear DOT de
----
Take this as an example for this function:
class Foo{
function Foo(){}
function whoami() {
echo get_class( $this );
}
}
class Bar extends Foo {
function Bar(){}
}
$baz = new Bar();
$baz->whoami();
This will output:
bar