NYCPHP Meetup

NYPHP.org

[nycphp-talk] multiple constructors

George Schlossnagle george at omniti.com
Wed Sep 29 21:53:26 EDT 2004


On Sep 29, 2004, at 9:51 PM, Matthew Terenzio wrote:

>> Thus, in Java you have multiple constructors because you have to, in 
>> PHP you can't have multiple constructors because you don't ever have 
>> to.
>
> So,  put the max number of parameters that could be passed in the 
> constructor and just pass arg1, arg2 to the max upon instantiation, 
> depending on the situation?

Or just use func_get_args()

George




More information about the talk mailing list