[PHP] Re: while question

2008-11-17 Thread tedd
At 2:25 PM + 11/17/08, Nathan Rixham wrote: sounds like a poor teacher It's more likely a poor student who wants us to answer the questions, but hasn't the time to investigate the answer OR write a question more correctly himself. Cheers, tedd -- --- http://sperling.com http://an

[PHP] Re: while question

2008-11-17 Thread Nathan Rixham
Alain Roger wrote: Hi, i'm on PHP training and our lector is telling us that to avoid counting an array item amout thanks count($my_array), he tells we can do: while($my_array) { ... do something } but from experience this is an infinity loop... it should be always something like $count = coun