Szymon W Mon Jul 19 17:34:49 -0400 2010

Subject: un-necessary count()

Looks like a bug, because in PHP the method placed as a loop condition is executed within each iteration. This does not apply to foreach (there is no condition there), but applies to for and while, like here.

Szymon W Mon Jul 19 17:40:47 -0400 2010

Oh, I've just read the whole method again. Well, it seems it's ok here.