Is it allowed in PHP 3.* to declare global conditionally or somehow in the middle of the code?
Ex:
function test($mode) { if ($mode) global $value; else $value = 'test'; echo $value; }
Just can't find it in the manual.
In PHP4 you should declare a global variable outside the function. Cheers,