Example:
Code: Select all
class art{
var $moduleInfo = "Hello World";
}
$art = new Art;
getModuleInfo("art");
function getModuleInfo($moduleName){
//I know I need something to happen right here. I don't want to reinitialize the class since it has already been done. I would just like to make it accessible within this function.
echo $moduleName->moduleInfo;
}