Is it possible to dyanmically call a classes static member or property?
So something like
class test1 {
static $staticVar = "Help";
}
$className = "test1";
echo $className::$st aticVar;
This produces an error. Does anyone know if its possible? Thanks
So something like
class test1 {
static $staticVar = "Help";
}
$className = "test1";
echo $className::$st aticVar;
This produces an error. Does anyone know if its possible? Thanks
Comment