I'm trying to do something pretty simple, but my newbie status with PHP is giving me some grief. I want to create a factory method that can create a dynamic class given a classname:
function _factory( $returnobj, $classname="")
{
$returnobj = new //$classname// ;
return $returnobj ;
}
What do I put where //$classname// is?
Thanks (I've been struggling with this for hours).
lostarts