title: Get instance of child in parent class
body: <p>Is there any way how to determine instance of child in parent class in PHP? Let's say we have this code:</p>
  
  <pre><code>class Parent {
      public function InstanceOfChild() {
          //What to put here to display "Child class is instance of ChildClass123"?
      }
  }
  
  class ChildClass123 extends Parent {
     //Some code here
  }
  </code></pre>
  
  <p>What I need to do (if it's possible) is create method <code>InstanceOfChild()</code> which will tell me instance of child class, because a lot of classes can be child of my parent one, but I want to (let's say) log, which child call which methods. Thanks for help!</p>