hi!
is there a way to access a static member of a class, if the classname
is a variable?
this does not work:
$classname::$me mber
for methods there is a solution:
call_user_func( array($classnam e, 'method'));
for constants, too:
constant($class name.'::CONSTAN T');
is there any similar way for members?
thanks,
- rainer
is there a way to access a static member of a class, if the classname
is a variable?
this does not work:
$classname::$me mber
for methods there is a solution:
call_user_func( array($classnam e, 'method'));
for constants, too:
constant($class name.'::CONSTAN T');
is there any similar way for members?
thanks,
- rainer