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 03:56

Greg Scharlemann wrote:

> I have a class with a constructor function that looks like so on my php
> 5.0 box:
>
> public function __construct(....)
>
> does this syntax change when I go back to php 4.4.1? I've never used
> 4.4.1 before, been solely 5.0 until now. It seems the 4.4.1 box is
> giving me an error on that call.
>
> I've been looking on google for a while for a simple answer, but must
> not be searching for the right thing.
>
> Thanks in advance.

PHP 4.x supports only constructors that
have the same name as the class,

e.g.

class abc {

// Constructor
function abc() {
}

}

The chances are pretty good that you will
have to upgrade to php 5

--
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

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