note 97337 modified in language.oop5.decon by danbrown
| From: | danbrown@php.net | Date: | Thu, 15 Apr 2010 12:56:08 +0000 |
| Subject: | note 97337 modified in language.oop5.decon by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-168276@lists.php.net to get a copy of this message | ||
If you are not aware of the parameter list, you could use the following in __construct to call up
the chain:
<?php
$args = func_get_args();
call_user_func_array(array($this, 'parent::__construct'), $args);
?>
--was--
If you are not aware of the parameter list, you could use the following in __construct to call up
the chain:
$args = func_get_args();
call_user_func_array(array($this, 'parent::__construct'), $args);
http://php.net/manual/en/language.oop5.decon.php