Can someone explain this for loop syntax: for(;$position<$length; )
thanks
equivalent to
while ($position<$length)
thanks. Is there any situation where this is preferable to using "while" instead.
None that I can think of. It should be preferable to use a while loop as that would be clearer.