note 65249 added to function.get-class
| From: | benjaminhill at gmail dot com | Date: | Thu, 27 Apr 2006 17:47:19 +0000 |
| Subject: | note 65249 added to function.get-class | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-109871@lists.php.net to get a copy of this message | ||
More funkyness:
class Parent {
function displayTableName() {
echo get_class($this);
echo get_class();
}
}
class Child {
function __construct() {
$this->displayTableName();
}
}
Will return
- Child
- Parent
So when they say "the object isn't required in PHP5" - they don't really mean
it.
----
Server IP: 64.71.164.2
Probable Submitter: 24.7.64.69
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.get-class.php
Edit -- http://master.php.net/note/edit/65249
Del: integrated -- http://master.php.net/note/delete/65249/integrated
Del: useless -- http://master.php.net/note/delete/65249/useless
Del: bad code -- http://master.php.net/note/delete/65249/bad+code
Del: spam -- http://master.php.net/note/delete/65249/spam
Del: non-english -- http://master.php.net/note/delete/65249/non-english
Del: in docs -- http://master.php.net/note/delete/65249/in+docs
Del: other reasons-- http://master.php.net/note/delete/65249
Reject -- http://master.php.net/note/reject/65249
Search -- http://master.php.net/manage/user-notes.php