GerHobbelt/lessphp — comment on commit 99cca375ff46f0f1fc71e3eb41558abbfbde810a
File:  line 0
By GerHobbelt:

No run-time, just (pedantic) coding style. It's rather a thing to remind myself about 'oh yeah, right, this isn't replacing a value in an array but rather a character in a string it's just checked before in the if(...)'. In PHP I tend to use {} to index characters in strings and [] to index items in arrays, but that doesn't really matter; the point here is that the way things are indexed in the if() should match the way the same stuff is indexed in the assignment, so either both {i} or both [i].

In the end, a matter of taste. Now that I've done a bit more with lessphp, I think making both [] would be more appropriate.