I need to have some variables that must be global. At the top of my file I declare the varables: global $temp;
Than in the function a need to request the variables, so I do the following:
I tried:
$var1 = GLOBALS['$temp']; and
$var1 = GLOBALS['temp']; and
$var1 = GLOBALS[$temp];
However the variable is empty, in other word the global declaration is incorrect. I also try to call $temp as regular parameter, but cannot access it. Any ideas what I'm doing wrong?
Thanks