title: [PHP]How to check if a class inherits another class without instantiating it?
body: <p>I have some class name.
  How to check if a class inherits another class without instantiating it?</p>
  
  <pre><code> if (!class_exists($controller)) //AND I have check type
          {
  
              $objectController = new IndexController();
              $objectController-&gt;index();
          }
  </code></pre>