This should be a simple question but I can't find the answer in the manual.
is it necessary to global variables or constants in functions?
i.e.
function Foo()
{
global $PHPSESSID;
global SID; // how would you do that anyway?
}
Thanks in advance
Daryl
--
PHP General Mailing List
: Wednesday, July 30, 2003 12:59 PM
Subject: [PHP] PHPSESSID AND SID
This should be a simple question but I can't find the answer in the
manual.
is it necessary to global variables or constants in functions?
i.e.
function Foo()
{
global $PHPSESSID;
global SID; // how would you do that anyway
2 matches
Mail list logo