PHP Coding tips & tricks. Function & error explanation, coding style, how tos etc. Short notes posted directly from developer work environment.
PHP Coding Tips
Wednesday, August 8, 2012
How to call parent constructor ?
If you write your own constructor, you propably will want to call a parent construtor first to set up a class. You can do it in that way:parent::__construct();This can be used also to call parent methods.
No comments:
Post a Comment