Tag Archives: PHP

Musings of a PHPDiversity Rainbow Elephpant

Mark’s away at the Dutch PHP Conference where (apparently) he’s talking to people about cats; but while he’s away, I’ve had the most incredible, incredible news. It’s really been a very busy day here. Not only is there a new … Continue reading

Posted in PHP | Tagged , , | 4 Comments

Musings of a PHPDiversity Rainbow Elephpant

Wow! Mark is letting me write my own posts on his blog. For those of you who don’t know me yet, I’m Enfys, the PHP Diversity Rainbow Elephpant; or at least, I shall be when I’m real. At the moment, … Continue reading

Posted in PHP | Tagged , , | 2 Comments

The PHP Diversity Rainbow ElePHPant

It was a picture posted by Peter Kokot (a Slovenian developer) on the PHP group on Facebook that got me thinking. Together with his comment: Hello, PHPers. A friendly reminder to spread awareness and support of equality because discrimination separates us. Today is … Continue reading

Posted in PHP | Tagged , , | 5 Comments

Anonymous Class Factory – The Results are in

A week or so ago, I published an article entitled “In Search of an Anonymous Class Factory” about my efforts at writing a “factory” for PHP7’s new Anonymous Classes (extending a named concrete base class, and assigning Traits to it dynamically); and about … Continue reading

Posted in PHP | Tagged , , , , , , | Leave a comment

In Search of an Anonymous Class Factory

One of the more interesting new features introduced to PHP with the arrival of version 7 is Anonymous Classes. Anonymous Functions (or Closures) have been a part of the language since version 5.3.0, and are something that I find incredibly useful; … Continue reading

Posted in PHP | Tagged , , , | 12 Comments

Heroes of PHP™ #2

Following the first part of my “Heroes of PHP”™, I subsequently posted the second of my 24 “Heroes of PHP”™ on Twitter. As with the first list, I’m reproducing that second set of Heroes here, together with some additional explanation about … Continue reading

Posted in PHP | Tagged , | 5 Comments

Heroes of PHP™ #1

Following the conclusion of the 24 Days in December series on PHP, I originally posted my own 24 “Heroes of PHP”™ on Twitter. I’m reproducing that list here, together with some additional explanation of why these individuals mean so much to … Continue reading

Posted in PHP | Tagged , | 3 Comments

A Functional Guide to Cat Herding with PHP Generators

When working with arrays in PHP, three of the most useful functions available to us are array_map(), array_filter() and array_reduce(), which allow us to walk an array and manipulate the value of array elements, select a subset of values from an array, or … Continue reading

Posted in PHP | Tagged , , , , , | 8 Comments