I may not understand what you want, but what about this?
switch ($_POST['ClassType']) { case "Class1": $class1::create(); break; case "Class2": $class2::create(); break;
If this does not work, you should study EVAL (dangerous, be careful.)
Ian p source share