This is not entirely correct. Imho you did not even try it.
In this post I cannot see any attempt by you at all.
That you would have to use a WHILE is obviously, but you did not post any attempt ... you just said: "I need an example."
I have similar users who say:
"I need that and could not figure out, how to do it, please make an example."
In fact this means: "Program it for me! Solve my problem!" disguised as an example for the whole community.
I have to admit, the english documentation does not have as much examples as my german documentation, but it's the lack of your effort to even try it, I put on trial here.
Please read this
http://www.catb.org/~esr/faqs/smart-questions.html#introDoing you homework, beeing a part of the solution is your job, not ours.
I think, it would have been easier for Kelvin to look through code you tried to program instead of doing it on his own. Perhaps this depands how complex you program your code.
I am less tolerant than Kelvin, but I do this job for nearly 2 years now. Many persons who are mods and always are polite, answer one n00b question after the other, burn out and quit, helping nobody anymore.
What we are, unapologetically, is hostile to people who seem to be unwilling to think or to do their own homework before asking questions. People like that are time sinks they take without giving back, they waste time we could have spent on another question more interesting and another person more worthy of an answer. We call people like this \"losers\" (and for historical reasons we sometimes spell it \"lusers\").
I call "lusers" to order. If they do not follow my rules, do not make their homework before they post, I will react hostile towards them. Perhaps some users turn away and do not look at vLIB again, but this way I have more time for real vLIB questions.
Look at the german forum. It's one of the most used in here. The ppl know I will help them, if they put effort in their posting.
My work for vLIB does not pay me a single dollar. I think I have the right to be paid by "smart questions". I am entitled to be treated with respect and that my support forum ist not spammed with:
"WILL I GET ANY HELP HERE?????????????"
You can honor Kelvin and my work, when you try to get a better PHP coder. Improve your skills and next time you try first, do your homework and post afterwards.
Since I want the vLIB class to live long and prosper and I want not to become a burn-out, I have to say such things to ppl like you.
Again my humble opinion and 2 cents.
Claus