Well apparently trying to break it apart produced nothing I could discern, just more parsing errors.
I wound up doing this instead and it worked:
$objName = ucfirst($action); // SET TO VARIABLE BECAUSE ONLY A VARIABLE INSTANCE CAN BE USED FOR CLASS OBJECT INSTANTIATION AND !FUNC
${$action . 'Obj'} =& new $objName; // SET UP A DYNAMICALLY-NAMED CLASS OBJECT INSTANCE BASED UPON VALUE OF $objName BASED UPON ACTION
if (!class_exists($objName) || !method_exists(${$action . 'Obj'}, "$dbBrandName$objName")) {
$errorArray = $errorArray + array('action' => "Your action '$action' is invalid or your database brand '$dbBrandName' is invalid");
// NULLIFY ALL VARS TO FORCE TO RETURN TO FRONT PAGE OF UTILITY
$db = null; $files = null; $table = null; $choice = null; $action = null;
} else {
/*-----------------------------------------------------------------------------------------------------------------------------------
Due to PHP syntax restrictions you can't use the actual class object instance ${$action . 'Obj'} to call its method based upon
the names $dbBrandName and $objName; instead, you will have to use "call_user_func". You still must create the object instance
to check if both class and the class method exist, so you still have to create the class object instance regardless. Remember
to nullify the object after you're done
------------------------------------------------------------------------------------------------------------------------------------*/
@call_user_func(array($objName, "$dbBrandName$objName"));
}
I didn't know about call_uer_func but it seems to come in handy, however, now I have this class object instance just sitting around doing nothing except to verify method_exists to be true or not.
Phil