Re: [PHP] 'How to jump..' part 2

2001-03-26 Thread Christian Dechery
>I don't think PHP will understand commas as command separators. > >Perhaps what you could try is a simple loop 0 to 6 and for each iteration >of the loop, unset the corresponding array element > >for($i=0; $i <= 6; $i++) { > unset($array[$i]; > } this actually worked... thanks for the hint:

Re: [PHP] 'How to jump..' part 2

2001-03-26 Thread Christian Dechery
>I don't think PHP will understand commas as command separators. > >Perhaps what you could try is a simple loop 0 to 6 and for each iteration >of the loop, unset the corresponding array element > >for($i=0; $i <= 6; $i++) { > unset($array[$i]; > } I got it working, and YES... PHP did understan

Re: [PHP] 'How to jump..' part 2

2001-03-25 Thread David Robley
On Mon, 26 Mar 2001 08:25, Christian Dechery wrote: > Regarding my last email (about jumping the first 7 rows of an array)... > > why does this code doesnt work? > > for(reset($array),$count=0;$count<6;next($array),$count++); > > . Christian Dechery (lemming) > . http: