Reputation: 63442
Is it possible to remove a class in PHP after defining it? For example:
class Test { }
<something>('Test');
$test = new Test(); // <- not working because there is no class "Test"
Upvotes: 1
Views: 1275
Reputation: 86366
In simple words, No you can not remove the class once you loaded in the script.
If you explain why you need this, you may found any solution.
Upvotes: 5