[UPHPU] subsituting variable into new object command

jtaber jtaber at johntaber.net
Fri Jun 30 14:24:45 MDT 2006

I'm writing a test module (which I'll show at next hacker mtg (thurs
6th) but I need to subsitute object names into a command to instantiate
new objects ie:

public function test1($objname='test') {
  $obj = new $objname;  // this doesn't work
  compare($obj->size, ......)

how can I subsitute into the new command ?  thks.

More information about the UPHPU mailing list