note 15396 added to keyword.parent
| From: | minoc at mindspring dot com | Date: | Fri, 07 Sep 2001 20:52:29 +0000 |
| Subject: | note 15396 added to keyword.parent | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17793@lists.php.net to get a copy of this message | ||
w/ PHP 4.0.5, I was able to chain
my constructors easily with:
class foo extends bar {
function foo() {
$par = get_parent_class($this);
$this->$par();
// then normal constructor stuff.
// ...
}
}
http://www.php.net/manual/en/keyword.parent.php