PHP Object Oriented Programming #5: Interfaces

In tutorial 5 on Object Oriented PHP Programming, we look at interfaces. More specifically, we create a user interface with a public method greeting. We then create english and french users which are required to implement the greeting method. Using a utility class, we then dynamically call the greeting method.

In doing so, we also take a quick look at the popular Factory design pattern near the end of the tutorial.