my point was that it is not obvious what the purpose is.
say that your function is in an include file and you may have multiple include files in one script, what you would have is this:
require_once("include_file_one.php");
require_once("include_file_two.php");
myfunc();
echo $myvar;
where did $myvar come from? I would think it would be more obvious to use
myfunc($myvar);
echo $myvar;
while global is useful, I feel it is a bad way to design code. I have used it extensively in my code, and now I am in the process of changing it back. I was just trying to save you some hassle in the long run..
p.