PHP does not support multiple constructors.

Michael

On Wed, 17 Jul 2002, David Russell wrote:

> Hi all,
> 
> I am finally spending some time converting a million and one functions 
> into a class - this is for a software issue tracking system.
> 
> I have:
> 
> class issue {
>    var
>    var
>    ...
> 
>    function issue() { //default constructor
>      //initialise all variables to defaults, and start getting the stuff 
> from forms
>    }
> 
>    function issue($number) { //1 variable constructor
>      // Query database and populate variables accordingly
>    }
> }
> 
> My question is: will this work? does PHP OOP support more than one 
> constructor? If my syntax is wrong, please let me know the correct syntax.
> 
> Thanks
> 
> David R
> 
> 
> 

-- 
--------------------------------
n   i   n   t   i  .   c   o   m
php-python-perl-mysql-postgresql
--------------------------------
Michael Hall     [EMAIL PROTECTED]
--------------------------------


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to