You are here: Re: php 4.4.1 constructor Vs. Php 5.0 constructor « PHP Programming Language « IT news, forums, messages
Re: php 4.4.1 constructor Vs. Php 5.0 constructor

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация