Almost.
When you have a function that is setup like this:
myfunct($var1, $var2)
It is expecting 2 variables and it gets them by value, so if you manipulate them inside your function the original variables will not be modified.
When you use global, you don't need to pass any variables so your function could have easily been:
function fun() {
global $field,$order;
$field = 10;
$order = 20;
}
And you would have gotten the same results. If you want to specifically pass your variables by referance you need to build your function to let it know you only want referances
function fun(&$var1,&$var2) {
$var1 = 10;
$var1 = 20;
}
That function will perform exatly the same way your function with the globals will function. And as you can see it doesn't matter what I call the variables inside the function.