note 9441 rejected and deleted from Variable variables by ronabop
| From: | ronabop@php.net | Date: | Fri, 03 Nov 2000 04:11:53 +0000 |
| Subject: | note 9441 rejected and deleted from Variable variables by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7335@lists.php.net to get a copy of this message | ||
Is it possible to create a new class via variable variables? For example:
class foo{
function fooit(){
}
}
$test = "foo";
${$test} = new {$test};
// but that doesn't work so I tried...
${$test} = new "$test";
// but this doesn't work also...
-Jonathan