Friday morning madness.

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

 



Hi.

I've often wondered if there was a way to call the parent method in a
subclass without having to actually name the method. For me it always
seemed odd to call my parents by their name.

So, just found that this little gem works quite nicely!

parent::{__FUNCTION__}();

And judging from some Googling, I'm not the first to discover this!

Use it wisely folks.

And happy Friday everyone!
-- 
Richard Quadling
Twitter : @RQuadling

[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