Can I pass the $GLOBALS array into the function so I get access to all of the variables passed to the script?

Thanks