[snip]
> FYI ... anything below PHP5 has a pseudo constructor.
And how will it be in PHP5 ?
[/snip]
PHP5 will be using the Zend 2 Engine, and gives a standard way of
declaring constructor methods by calling them by the name __construct().
An example from http://www.php.net/zend-engine-2.php
> FYI ... anything below PHP5 has a pseudo constructor.
And how will it be in PHP5 ?
> Since you are inheriting the class the 'constructor' for the parent class
> should work. If it doesn't (I have not tested it, and neither have
> you)then the class extension can contain a 'contstructor' that
[snip]
I would like to know a constructor function is also inherited to a child
class.
I mean the child class also needs to have a constructor function but it
must
have the same name as the class name.
How does that work?
[/snip]
FYI ... anything below PHP5 has a pseudo constructor. Since you are
Good day,
I would like to know a constructor function is also inherited to a child
class.
I mean the child class also needs to have a constructor function but it must
have the same name as the class name.
How does that work?
Thank you very much.
BW
--
PHP General Mailing List (http://www.php.
4 matches
Mail list logo