class Registry { /** * Array of objects */ private $objects; public function ... $class = 'Foo'; $foo = new $class;. is the same as $foo = new Foo;.
more
more
Home »Unlabelled » php - Create an instance of an object inside a method - Stack Overflow
Posted by Unknown on Saturday, March 15, 2014
2010 All Rights Reserved Php programming tips.
» Php programming tips: php - Create an instance of an object inside a method - Stack Overflow
{ 0 comments... » php - Create an instance of an object inside a method - Stack Overflow read them below or add one }
Post a Comment