PHP and the Gem Within

23 11 2017

Flickr: by Hetx

Ubiquitous and lithe, little characters, popping up anywhere from user-defined functions to control structures and class definitions, PHP’s curly braces depending on circumstances may exhibit a distinctly Perlish quality. Perl exerts an influence since it figures as one among three languages from which PHP, indelicately-speaking, purloins much of its syntax. PHP’s connection to Perl also relates to its predecessor PHP/FI, originally a Perl hack that Rasmus Lerdorf later rewrote in the C Programming Language. To better appreciate PHP, certainly its Perlish facet merits inspection, and complex (curly) syntax, lends itself well to this endeavor.

Read the rest of this entry »


Sleight of Date

3 01 2015

Flickr: by Paolo Margari

Someone posted an interesting JavaScript question recently at StackOverflow, concerning how one may  convert a date string into Unix time without the timezone effecting the result. In reflecting on that question, I also discovered a “trick” by which one can fool a local date object to a degree.

Read the rest of this entry »

Illuminating a Dark Alley

15 10 2014

Flickr: by I.Gouss


“PHP has its share of dark alleys that you really don’t want to find yourself inside.   Object properties with names that are numbers is one of them…”

Jon,  StackOverflow


Object properties with integers for names are illegal in PHP.  Yet, Read the rest of this entry »

Tasty In-Out Data

11 03 2011

Pieces of fruit in a basket

Image via Wikipedia

I had occasion today to revisit the subject of stacks and queues. These are both Read the rest of this entry »

PHP and Downcasting?

16 04 2010

Recently, a recruiter arranged for a perspective employer to call and conduct a 20 minute technical interview with me for a PHP Developer position. During the course of the technical questions directed my way, one in particular truly stunned me. The interviewer asked, “What does it mean to downcast an object?” Read the rest of this entry »

%d bloggers like this: