PHP supports many of the OOP concepts we know. The syntax is very similar to the syntax in Java. This video clip shows how to define static methods and static variables.
The Visitor Design Pattern
The visitor design pattern allows us to add operations to objects that already exist without modifying their classes and without extending them.