It just now occurred to me that at WordCamp I joked that the happiest moment of my life was when I found a bug in “Hello Dolly,” the ultra-simple example plugin that has been bundled with WordPress for as long as I can remember. Correction: I committed the fix for the bug, but I wasn’t the one who found the bug. Chalk that down to fuzzy memory. In any case, that’s why we track these things. Here is the now legendary commit, and here is the report. Sorry for accidentally taking credit for that, “joti!”
Note the time difference between the report and the fix. Thirteen minutes. Nothing but the best for our precious Dolly!
The bug existed because numerically indexed arrays start at 0, not 1. So the number of the last element in an array is actually one less than the number of elements in that array.