Re: [PHP] Foreach problem.

2005-02-10 Thread Robert Cummings
On Thu, 2005-02-10 at 14:26, Richard Lynch wrote: > Mirco Blitz wrote: > > HI, > > I am really confused. > > I have an array, that looks like this: > > > > print_r($elementsarr) = Array ( [0] => knr [1] => subject [2] => title [3] > > => kat [4] => pages [5] => access [6] => dofile [7] => MAX_FILE_

Re: [PHP] Foreach problem.

2005-02-10 Thread trlists
On 10 Feb 2005 Richard Lynch wrote: > Perhaps you need to use http://php.net/reset > > You see, when you do foreach or each or any of those, there is an > "internal" setting in the array that is altered to keep track of where you > are. Kind of like a big "You are here" arrow inside the guts of

Re: [PHP] Foreach problem.

2005-02-10 Thread Marek Kilimajer
Richard Lynch wrote: Mirco Blitz wrote: HI, I am really confused. I have an array, that looks like this: print_r($elementsarr) = Array ( [0] => knr [1] => subject [2] => title [3] => kat [4] => pages [5] => access [6] => dofile [7] => MAX_FILE_SIZE [8] => pdf [9] => dolink [10] => link [11] => erst

Re: [PHP] Foreach problem.

2005-02-10 Thread Richard Lynch
Mirco Blitz wrote: > HI, > I am really confused. > I have an array, that looks like this: > > print_r($elementsarr) = Array ( [0] => knr [1] => subject [2] => title [3] > => kat [4] => pages [5] => access [6] => dofile [7] => MAX_FILE_SIZE [8] > => > pdf [9] => dolink [10] => link [11] => erstam [1

AW: [PHP] Foreach problem.

2005-02-09 Thread Mirco Blitz
Oh damn I am dumb thank you. That it was. -Ursprüngliche Nachricht- Von: Mikey [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 10. Februar 2005 00:07 An: php-general@lists.php.net Betreff: RE: [PHP] Foreach problem. > HI, > I am really confused. > I have an array, that looks

Re: [PHP] Foreach problem.

2005-02-09 Thread Matthew Fonda
remove the semi-colon at after foreach(...) On Wed, 2005-02-09 at 14:22, Mirco Blitz wrote: > HI, > I am really confused. > I have an array, that looks like this: > > print_r($elementsarr) = Array ( [0] => knr [1] => subject [2] => title [3] > => kat [4] => pages [5] => access [6] => dofile [7]

RE: [PHP] Foreach problem.

2005-02-09 Thread Mikey
> HI, > I am really confused. > I have an array, that looks like this: > > print_r($elementsarr) = Array ( [0] => knr [1] => subject [2] > => title [3] => kat [4] => pages [5] => access [6] => dofile [snip] > => s [31] => sa [32] => sh [33] => sn [34] => t [35] => bund ) > > Now i try to work

[PHP] Foreach problem.

2005-02-09 Thread Mirco Blitz
HI, I am really confused. I have an array, that looks like this: print_r($elementsarr) = Array ( [0] => knr [1] => subject [2] => title [3] => kat [4] => pages [5] => access [6] => dofile [7] => MAX_FILE_SIZE [8] => pdf [9] => dolink [10] => link [11] => erstam [12] => endless [13] => from [14] =

[PHP] Foreach problem.

2005-02-09 Thread Mirco Blitz
HI, I am really confused. I have an array, that looks like this: print_r($elementsarr) = Array ( [0] => knr [1] => subject [2] => title [3] => kat [4] => pages [5] => access [6] => dofile [7] => MAX_FILE_SIZE [8] => pdf [9] => dolink [10] => link [11] => erstam [12] => endless [13] => from [14] =