From 384345fc85c1fcba32b2a39678ca97580a72542e Mon Sep 17 00:00:00 2001 From: Phil Sturgeon Date: Tue, 10 Jul 2012 11:29:47 +0100 Subject: [PATCH] Some examples and notes for programming paradigms. --- _posts/03-02-01-Programming-Paradigms.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/_posts/03-02-01-Programming-Paradigms.md b/_posts/03-02-01-Programming-Paradigms.md index e8a39e6..c1098b7 100644 --- a/_posts/03-02-01-Programming-Paradigms.md +++ b/_posts/03-02-01-Programming-Paradigms.md @@ -4,7 +4,9 @@ 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). +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 @@ -13,15 +15,31 @@ PHP is a flexible, dynamic language that supports a variety of programming techn ### Functional Programming +PHP has had annonymous functions since PHP 5.3: + +{% highlight php %} +