There are other ways as well you can pass the variable into the function by reference:
<BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
function ( &$myvar1, &$myvar2 ) {

$myvar1 = 1;
$myvar2 = 2;

}
[/code]

------------------
Karl Austin
KDA Web Services
"Everyone has a photographic memory. Some just don't have film."