> So is there ANY way to get the name of the object in PHP code without > knowing the name of the object ahead of time? I went through this exact thing not too long ago with an error class I wrote. Unfortunately, there is no way to know. What you can do, however, is do a check to see if that object exists before you access the variable. Other than that, I think you're outta luck. :/ Chris