Posted by Etienne Marais on 12/07/05 12:25
Andy wrote:
> It's true that PHP4 requires a constructor to have the same name as the
> class, but that doesn't mean you have to upgrade to PHP5 just to use
> the __construct method. Simply add a new method to you class with the
> same name as the class and use that to call the __construct method.
Nice. What else can a person do to
ensure 'upward' compatibility in
php 4 classes ?
--
Etienne Marais
Cosmic Link
South Africa
[Back to original message]
|