PHP 5.4 – Traits, Closures, and Prototype-based Programming

According to Wikipedia, prototype-based programming is “a style of object-oriented programming in which classes are not present, and behavior reuse (known as inheritance in class-based languages) is performed via a process of cloning existing objects that serve as prototypes”With magic Continue reading PHP 5.4 – Traits, Closures, and Prototype-based Programming

PHP – Anonymous Functions and Closures (Part I)

Anonymous functions are functions that are defined without being bound to a proper name. Typically, anonymous functions are used only a limited number of times and for a specific purpose; you could think of them as “throw-away” functions if you’d Continue reading PHP – Anonymous Functions and Closures (Part I)