rid
rid

Reputation: 63442

Removing a class in PHP

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

Answers (1)

Shakti Singh
Shakti Singh

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

Related Questions