rsalumpit Posted July 20, 2009 Share Posted July 20, 2009 How do you call a function of a class' parent class? can you also give me an example? Quote Link to comment https://forums.phpfreaks.com/topic/166609-solved-php-class-question/ Share on other sites More sharing options...
trq Posted July 20, 2009 Share Posted July 20, 2009 parent::methodname(); This is all covered in the manual. Quote Link to comment https://forums.phpfreaks.com/topic/166609-solved-php-class-question/#findComment-878520 Share on other sites More sharing options...
ignace Posted July 20, 2009 Share Posted July 20, 2009 class SomeClass extends SomeParentClass { public function parentMethod() { parent::parentMethod(); } } Quote Link to comment https://forums.phpfreaks.com/topic/166609-solved-php-class-question/#findComment-878523 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.