What are interfaces in PHP, and how are they used?
Category: Oop
An interface in PHP defines a set of method signatures (method names and their parameters) that any implementing class must implement. Interfaces ensure that multiple unrelated classes follow the same structure without enforcing inheritance.