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
You can use unset() to delete an object, but the class itself cannot be deleted. To be honest, modifying code like that at runtime sounds kludgy and confusing - is there not a better option?