A variable named $class
contains the name of a class.
How can I access a static member of that class?
I need an approach that would work in PHP 5.2.
The following works in PHP 5.3:
$class::$default_error_message;
In PHP 5.2 it outputs:
unexpected T_PAAMAYIM_NEKUDOTAYIM
Btw, T_PAAMAYIM_NEKUDOTAYIM
?! PHP doesn't cease to amaze me.