For a project I am doing I need info stored in a static variable that is in an abstract class. The problem is that I have several different abstract classes that hold variables of the same name. I pull the names of the abstract class names out of a database. How can I use the results from that query to call the static method?
I want to do something like:
$db = mysql_connect("localhost", "user", "passwd");
$dbres = mysql_query("SHOW databases");
while($adb = mysql_fetch_array($dbres))
{
echo sprintf("<div>%s</div>", $adb[0]::$staticVariable);
}
Any suggestions for how I might accomplish this?