<?php class Foo { public $name = null; public function __construct($name) { $this->name = $name; } } $a = array('foo' => 'Foo'); $b = new $a['foo']('hello'); var_dump($b->name);
You have javascript disabled. You will not be able to edit any code.