Creating Object Names on the Fly
Posted: Fri May 28, 2010 2:55 pm
Hi all,
I'm having some problems creating an object name on the fly. I'd assume it was the following to generate 'new TestObject()':
But that doesn't work. What's the correct syntax to do this?
Thanks for any replies,
Jim.
I'm having some problems creating an object name on the fly. I'd assume it was the following to generate 'new TestObject()':
Code: Select all
$objectname = "Test";
$object = new {$objectname}Object()
Thanks for any replies,
Jim.