Skip to content

Latest commit

 

History

History
60 lines (45 loc) · 2.36 KB

03-02-01-Programming-Paradigms.md

File metadata and controls

60 lines (45 loc) · 2.36 KB
isChild
true

Programming Paradigms

PHP is a flexible, dynamic language that supports a variety of programming techniques. It has evolved dramatically over the years, notably adding a solid object-oriented model in PHP 5.0 (2004), anonymous functions and namespaces in PHP 5.3 (2009), and traits in PHP 5.4 (2012).

Object-oriented Programming

PHP has a very complete set of object-oriented programming features including support for classes, abstract classes, interfaces, inheritence, constructors, cloning, exceptions, and more.

  • [Read about Object-oriented PHP][oop]
  • [Read about Traits][traits]

Functional Programming

PHP has had support for anonymous functions and closures since PHP 5.3:

{% highlight php %}