On 4/24/08, Pete Spicer <[EMAIL PROTECTED]> wrote: > > Hello > It is possible to instantiate a class from a variable name - before PHP 5.3 > even. I've been doing this with 5.2 in a project I'm working on. > > I think the key thing is the syntax: > $table1 = new $originClass; // note no brackets > > Hopefully that'll help!
It that's true, then sorry for the wrong information on my part. It's a while ago that I tried to do something similar, and I'll probably have mixed up a few things. Good to know your use case will work :) Pete -- Vincent
