Hi,
is it somehow possible to redeclare a alreday declared class? I need to loop over different application instances which can have the same class name (normally, only one is instantiated of course).
Example - all included instances have the same class name but have different code (weird, but I can't change it)
foreach($all as $currentInstance)
{
include ($currentInstance);
$x = new myExt(); // class name is always the same but code changes on each iteration
...
unset ($x);
}
Is there a possibility to "destroy" or "overwrite" a already included (declared) class?
Thanks for any help!
Bachi