Problem and solution
Posted Apr 6, 2008 15:20 UTC (Sun) by
man_ls (subscriber, #15091)
In reply to:
Problem and solution by olecom
Parent article:
What If I Don't Actually Like My Users?
What if the array is empty? You would be doing one iteration, while the above idiom (while (i>0) {--i;}) skips the loop and works fine.
(
Log in to post comments)