Re: Call an overridden method in parent class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 4, 2014 at 1:21 PM, Alain Williams <addw@xxxxxxxxxxxx> 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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux