Glenn:

The GLOBAL is another way to be able to modify the content of a variable inside the UDF and have the results available outside the UDF:
code:
global $a
$a='whatever'
? $a
$rc=glbl()
? $a
exit 0
function glbl()
$a='changed inside glbl()'
endfunction

_________________________
There are two types of vessels, submarines and targets.