Basic class definitions begin with the keyword class, followed by a class name, followed by a pair of curly braces which enclose the definitions of the properties
Examples: Inheritance Example
Examples: Trait example As of PHP 5.4.0, PHP implements a method of code reuse
Examples: References and Objects One of the key-points of PHP 5 OOP that is often
Examples: Final methods example PHP 5 introduces the final keyword, which prevents
Examples: self:: usage Static references to the current class like self::
Examples: Sleep and wakeup
Examples: Property declaration Class properties must be defined as public, private
Examples: property declarations Class member variables are called "properties"
Changelog: 5.3.0 Added __callStatic(). Added warning to enforce public visibility
Page 2 of 3