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? 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. 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(); } } Link to comment https://forums.phpfreaks.com/topic/166609-solved-php-class-question/#findComment-878523 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.