I have this:
$classname
$propert
Even if for you said eval is out of the question, prior PHP 5.3 the easiest solution is still by using eval:
eval
eval("\$propertyval = $classname::\$propertyname;"); echo $propertyval;