Question: what is difference between class and interface in php?
Answer: The key technical differences between an abstract class and an interface are: Abstract classes can have constants, members, method stubs (methods without a body) and defined methods, whereas interfaces can only have constants and methods stubs. ... This is because interfaces cannot define any implementation.