class foo{
....
}
Say that class exists in my code, then later on I no longer need this class and wish to remove it (so I can replace it with a
Use unset($classVariableName) to delete the instance and it will free the memory.
If the definition of the class shouldn't be there at run-time, then the class needs to be added in separate file and the file should be included only when it is require. So that you can have two different class definition with same class name. But having two different definition with same name is not a good way to go.