Re: While loop in array does not start with first entry
Posted by Oli Filth on 06/05/05 20:55
Matthias Braun said the following on 05/06/2005 18:51:
> Help!
>
> I am using arrays and a while loop for go through all the elements. The
> problem is that the first element is missing:
>
> while ($val = next($array))
> {
> $key = key($array);
> echo "$key: $val\n"
>
> }