<?php $a = 1; /* global scope */ function test() { global $a; var_dump($a); /* reference to local scope variable */ } test(); ?>
You have javascript disabled. You will not be able to edit any code.