is it possible to set a global variable that will work inside of a function... even if it's not one of the functions parameters?
IE
$globalvariable = test;
function test() { echo $globalvariable; }
Yes. Read the PHP manual on variable scope.
That said, you should avoid such global variables.