Can a class extend both an interface and another class in PHP? Basically I want to do this:
interface databaseInterface{ public function query($q); public
Try it the other way around:
class database extends mysqli implements databaseInterface { ...}
This should work.