Is using class_alias a better alternative for dynamically calling methods from different namespaces in PHP?
When dynamically calling methods from different namespaces in PHP, using `class_alias` can be a better alternative as it allows you to create an alias for a class, making it easier to access methods from different namespaces without having to fully qualify the class name each time.
// Define aliases for classes from different namespaces
class_alias('Namespace1\Class1', 'Alias1');
class_alias('Namespace2\Class2', 'Alias2');
// Now you can use the aliases to call methods from different namespaces
$object1 = new Alias1();
$object1->method();
$object2 = new Alias2();
$object2->method();