$GLOBALS PHP not working

Hi,

This no longer works in SC 9.6…


<?php function test() { $foo = “Local”; echo ‘$foo on the global scope: ‘ . $GLOBALS[“foo“] . “n”; echo ‘$foo on the global scope: ‘ . $foo . “n”; } $foo = “Global Example”; test(); ?>

Information printed on screen:

$foo on the global scope: Global Example

$foo on the current scope: Local


Any work arounds?