Hmm...SID is a constant, and when it's set it is present in $GLOBALS.

But when I run this:

<?php

define("CON1", "Hi there!");

echo CON1;
print_r($GLOBALS);

?>

...the constant exists, but is not present in $GLOBALS. Weird...anyone know
why this happens? (I'm using 4.0.5)


Plutarck

"Alex Black" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > phpinfo() allways has a list of variables. but of course every variable
is
> > allways in $GLOBALS too.
>
> including constants?
>
> I just print_r'd globals to refresh my memory, and found what I was
> expecting: none of my constants.
>
> ?
>
> _alex
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to