RE: [PHP] Undefined index a different problem

2003-01-07 Thread Matt Schroebel
Try: echo($GLOBALS[$i]); Or echo "{$GLOBALS[$i]}"; This times it's the array in the double quoted strings ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Undefined index a different problem

2003-01-07 Thread Marek Kilimajer
These are not errors, but notices, you can get around it using: if(isset($i) && array_key_exists($GLOBALS, $i)) echo $GLOBALS[$i]; or you might prefer setting error_reporting to not display notices Mekrand wrote: thanks but this time it gives 2 error, undefined variable i, undefined index i for

Re: [PHP] Undefined index a different problem

2003-01-07 Thread Mekrand
thanks but this time it gives 2 error, undefined variable i, undefined index i for $GLOBALS[$i] "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Mekrand wrote: > > >my problem is, > >i have a script that works well before php 4.2.3 > > > >its

Re: [PHP] Undefined index a different problem

2003-01-07 Thread Marek Kilimajer
Mekrand wrote: my problem is, i have a script that works well before php 4.2.3 its sth like that {.. for($i=0; $i should not be echo("$GLOBALS[$i]"); and it gives me notice that undefined index i. how can i solve this problem? thanks -- PHP General Mailing List (http://www.php.n