Redeclaring or Deleting a Class object

Associate
Joined
18 Oct 2002
Posts
2,367
Hi Guys

Hopefully you can help. If I declare a class in PHP like this:

$class = new Class

If I wanted to delete this class how would I do it?

Phil
 
Yeah i have tried unset but it wont seem to remove it. What I have is this:

white loop {
file is required with class in
functions within that class are executed
}

Now each time the while is run a different file is required, but within each of the files, I have the same class name. I have tried unset before the while loops to the next round but it still insists that the class has already been declared, even tho I unset it.
 
Back
Top Bottom