I want to dynamically create objects. Right now i'm creating them manually like this
$obj1 = new Prefix_Myobj();
$obj2 = new Prefix_Other();
$obj3 = new Prefix_Another();
How can I set the item after Prefix_dynamic? I tried this, but it did not work.
$name = 'Myobj';
$obj1 = new Prefix_{$name}();
source
share