• PHP Manual
  • Language Reference
  • Basic syntax
  • Types
  • Variables
  • Constants
  • Expressions
  • Operators
  • Control Structures
  • Functions
  • Classes and Objects
  • Namespaces
  • Enumerations
  • Errors
  • Exceptions
  • Fibers
  • Generators
  • Attributes
  • References Explained
  • Predefined Variables
  • Predefined Exceptions
  • Predefined Interfaces and Classes
  • Predefined Attributes
  • Context options and parameters
  • Supported Protocols and Wrappers
First class callable syntax
Introduction
Language Reference
PHP Manual

Classes and Objects

Table of Contents
  • Introduction
  • The Basics
  • Properties
  • Property Hooks
  • Class Constants
  • Autoloading Classes
  • Constructors and Destructors
  • Visibility
  • Object Inheritance
  • Scope Resolution Operator (::)
  • Static Keyword
  • Class Abstraction
  • Object Interfaces
  • Traits
  • Anonymous classes
  • Overloading
  • Object Iteration
  • Magic Methods
  • Final Keyword
  • Object Cloning
  • Comparing Objects
  • Late Static Bindings
  • Objects and references
  • Object Serialization — Serializing objects - objects in sessions
  • Covariance and Contravariance
  • Lazy Objects
  • OOP Changelog