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
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
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
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
my problem is,
i have a script that works well before php 4.2.3
its sth like that
{..
for($i=0; $ihttp://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
5 matches
Mail list logo