title: Can a class extend both a class and implement an Interface
body: <p>Can a class extend both an interface and another class in PHP?<br>
  Basically  I want to do this:</p>
  
  <pre><code>interface databaseInterface{
   public function query($q);
   public function escape($s);
   //more methods
  }
  
  class database{ //extends both mysqli and implements databaseInterface
   //etc.
  }
  </code></pre>
  
  <p>How would one do this, simply doing:</p>
  
  <pre><code>class database implements databaseInterface extends mysqli{ 
  </code></pre>
  
  <p>results in a fatal error:</p>
  
  <pre>
  Parse error: syntax error, unexpected T_EXTENDS, expecting '{' in *file* on line *line*
  </pre>