I've a really easy Php question.
Is the following possible:
$foo = 'bar';
Class $foo extends Object
{
...
}
I believe any OOP developer will have an idea about what I wish to accomplish. Thanks in advance for any hints.
UPDATE: Sometimes you would want to have the script's filename as its own classname (of course you'll have to prefix the classname to minimize collission). Also... without using eval(). I should have written the code as:
$cls = 'MyCls' . basename(__FILE__);
Class $cls extends Object
{
...
}