Re: accesing parents method inp PHP clases
| From: | KOYAMA Tetsuji | Date: | Thu, 02 Nov 2000 10:44:17 +0000 |
| Subject: | Re: accesing parents method inp PHP clases | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-23366@lists.php.net to get a copy of this message | ||
At Thu, 2 Nov 2000 11:13:34 +0100,
Pavel Filipensky wrote:
> class b extends a {
>
> function init () {
> # here I want to call parent method init()
>
> how?
>
> # and put some new code
> .....
> }
> }
if you are using PHP4, try this:
function init() {
a::init();
// put new code
}
--
koyama@hoge.org
koyama@beatraft.com
KOYAMA Tetsuji BeatCraft, Inc., Tokyo, Japan.