Reason #NaN I hate PHP

Quick, what does the following PHP [1] code print out?

for ($i = 'a' ; $i <= 'z' ; $i++)
echo "$i\n";

Non-PHP programmers might say “the letters from ‘a’ to ‘z’ of course!” But sadly, no. It does not just print the letters from ‘a’ to ‘z’. Nope. It prints way more than you expect [2] (link via Hacker News [3]).

I realize that picking [4] on PHP is like [5] shooting dead fish in a [6] barrel with a double [7] barrel shotgun but I find it [8] never gets too old [9].

=> [1] http://php.net/ | [2] http://stackoverflow.com/questions/4098345 | [3] http://news.ycombinator.com/item?id=1871768 | [4] /boston/2004/11/11.3 | [5] /boston/2004/11/13.1 | [6] /boston/2004/11/15.1 | [7] /boston/2008/09/17.1 | [8] /boston/2008/09/22.2 | [9] /boston/2012/01/07.1

=> Gemini Mention this post | Contact the author

Proxy Information
Original URL
gemini://gemini.conman.org/boston/2015/08/28.1
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
565.801517 milliseconds
Gemini-to-HTML Time
0.95362 milliseconds

This content has been proxied by September (3851b).