http://stackoverflow.com/questions/16706098/enable-register-globals-in-php-5-4
foreach ($_REQUEST as $key=>$val) { ${$key}=$val; }
http://php.net/manual/pt_BR/language.variables.scope.php
<?php $a = 1; $b = 2; function Soma() { global $a, $b; $b = $a + $b; } Soma(); echo $b; ?>