i have several objects
in my code it is not definded witch object should be createt. the name of the object that should be createt is stored ine variable.
how do write now the code to create the right object..
as example
class ob1{
code...;}
clas ob2{
code..;}
$variable = 'ob2';
myobject = new ..... what ?
myobject = new $variable?? isn't working
thanks for help