$class_name = 'MyClass'; $instance = OW::getClassInstance($class_name);
$class_name = 'MyNamespace\MyClass'; $instance = OW::getClassInstance($class_name);This code creates an instance of the MyClass class in the MyNamespace namespace, again using the getClassInstance method of the OW library. The package library for this method is the OW PHP library.