If I have two PHP classes Rappers and Rockers, is this the best way to create an instance of both?
$musicians = new Rappers() && new Rockers();
Update: More specific as to how I wanted to use this is to instantiate another class along with the Hybrid framework which is wrapped entirely in a class called Hybrid. This line would be inside a WordPress theme’s functions.php file:
$theme = new Hybrid() && new Response();
The best way would be:
You can’t assign multiple class instances to a single variable it just doesn’t make sense