Given the following code:

-----

class myClass {
  function myClass() {
    $classVar = get_class( $this );

  }
}

$thisInstance = new myClass();

-----

What value should $classVar contain?

"myClass"

or

"thisInstance"

?
The documentation leads me to believe that it is the 
latter value, but in practice it contains the former.  
If it is supposed to have the latter value, is there any
way I can get the fomer?  Any way that I can get the 
name "thisInstance"?

Chris

Reply via email to