title: Inheritance from more than one class
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2690898/is-multiple-inheritance-allowed-at-class-level-in-php">Is Multiple Inheritance allowed at class level in PHP?</a>  </p>
  </blockquote>
  
  
  
  <p>How can i resolve this problem</p>
  
  <pre><code>&lt;?php
  class A {
      public function af() {
          print 'a';
      }
      public function bark() {
          print ' arf!';
      }
  }
  
  class B {
      public function bf() {
          print 'b';
      }
  }
  
  class C extends B, A /*illegal*/ {
      public function cf() {
          print 'c';
      }
  
      public function bark() {
          print ' ahem...'; 
          parent::bark();
      }
  }
      
  $c = new C; 
  $c-&gt;af(); 
  $c-&gt;bf(); 
  $c-&gt;cf();
  print "&lt;br /&gt;";
  $c-&gt;bark();
  //Parse Error
  ?&gt;
  </code></pre>