<?php function retVal() { return $GLOBALS['foo']; } function & retRef() { return $GLOBALS['foo']; } $foo = 'init'; $bar = retRef(); $bar = 'bar'; var_dump($foo, $bar);
You have javascript disabled. You will not be able to edit any code.