You are here: Re: PHP4 vs 5 programming « PHP Programming Language « IT news, forums, messages
Re: PHP4 vs 5 programming

Posted by Wayne on 02/13/06 20:10

On Mon, 13 Feb 2006 18:49:52 +0100, Schraalhans Keukenmeester
<none@nowhere.nil> wrote:

>Hi
>
>Since PHP5 classes use the __constructor() method, and PHP4 still
>requires the classname as constructor, is there an easy way to
>incorporate both in my class definitions so the class is usable in both
>versions?

Nothing is stopping you from declaring both... one will be called in
PHP4, the other in PHP5. You can then make a call from one to the
other, if you like.

 

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

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