Re: [PHP] dynamic object instances

2005-08-10 Thread Jochem Maas
Thomas Angst wrote: Hello List, I would like to create an object inside a function with its classname and a parameter list submitted by the function call. function create($class, $parameter) { $obj = new $class($parameter); return $obj; } This is working very well. But I have not every

[PHP] dynamic object instances

2005-08-10 Thread Thomas Angst
Hello List, I would like to create an object inside a function with its classname and a parameter list submitted by the function call. function create($class, $parameter) { $obj = new $class($parameter); return $obj; } This is working very well. But I have not every time the same count