is it one or zero?

I am learning php at the moment and have just spent 30 minutes debugging a loop just because I assumed that php would starting counting at 0. Why I assumed this I hear you ask – well it just proves I have spent a long time programming in a single language (PeopleCode) and have forgotten some of the basics I learnt at university.

Never assume! as they say it makes an ass out of u and me!

So back to the loop – which is now working!

Advertisements