Comments By: Rinalds
-
In the first example Reflection is not actually needed and there is a much simpler way of doing this: $class = 'TestCallFunc'; $object = new $class('hello', 'sir'); This can sometimes be useful when implementing the Factory pattern.posted on Dec 14, 2007 at 7:43pm | context