Can a class extend both a class and implement an Interface
Try it the other way around: class database extends mysqli implements databaseInterface { …} This should work.
Try it the other way around: class database extends mysqli implements databaseInterface { …} This should work.