<?php class foo { function say($x) { echo "I was told to say $x\n"; } } $foo = new foo(); function a($x) { global $foo; $foo->say($x); } function b($x) { $GLOBALS['foo']->say($x); } a("hiya"); b("howdy");
You have javascript disabled. You will not be able to edit any code.