function getglobal() { global $my_global; echo "The value of \$foobar is '$foobar'"; } $my_global = 20; getglobal();?>