Contrary to the PHP.net resources the following scenario does not seem to work.
$a = 1;
$b = 2;
function Sum()
{
global $a, $b;
$b = $a + $b;
}
Sum();
echo $b;
php.net reports that this prints 3 but in actual fact it still prints 2.
Is there a method of accessing a function variable from outside the function or change a global variable from within a function?