[PHP] constructing class

2004-12-01 Thread Lorderon
Hi, I want to create an instance of a class and construct it with different params. The class name is a variable and the params change in each class. Is there a way to pass params to the constructor of a class like you pass params in the function call_user_func_array() ? BTW, there's a solution

[PHP] constructing class

2004-12-01 Thread Lorderon
Hi, I want to create an instance of a class and construct it with different params. The class name is a variable and the params change in each class. Is there a way to pass params to the constructor of a class like you pass params in the function call_user_func_array() ? BTW, there's a solution

Re: [PHP] constructing class

2004-12-01 Thread Richard Lynch
Lorderon wrote: I want to create an instance of a class and construct it with different params. The class name is a variable and the params change in each class. Is there a way to pass params to the constructor of a class like you pass params in the function call_user_func_array() ? PHP has