Re: Call an overridden method in parent class
| From: | David Harkness | Date: | Wed, 04 Jun 2014 21:45:03 +0000 |
| Subject: | Re: Call an overridden method in parent class | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-323388@lists.php.net to get a copy of this message | ||
On Wed, Jun 4, 2014 at 1:21 PM, Alain Williams <addw@phcomp.co.uk> wrote:
> Summary: How to call an overridden non static method in the parent class ?
>
> Calling an overridden static method is easy, just go: parent::MethodName().
You use the same construct. The code you posted works fine. Try putting in
some values for those properties to make it more explicit, but here's the
output:
Array
(
[a] =>
)
Array
(
[a] =>
[b] =>
)
Cheers!
David