Classes, Interfaces,Traits and Namespaces in PHP: summary and differences

Submitted by Anonymous (not verified) on Sun, 06/04/2017 - 11:52


  • An class can extend only one class.
  • A class can implement more than one interface.
  • An interface can extend more than one interface.
  • A trait can use more than one class.

Add new comment