Just curious to know what the best practice would be for something like this:A function, that returns multiple variables - how should one return these variables?like this (globalizing):\[code\]function myfun(){global $var1,$var2,$var3;$var1="foo";$var2="foo";$var3="foo";}//end of function\[/code\]or like this (returning an array):\[code\]function myfun(){$var1="foo";$var2="foo";$var3="foo";$ret_var=array("var1"=>$var1,"var2"=>$var2,"var3"=>$var3);return $ret_var;}//end of function\[/code\]I done a performance test, and it looks like using arrays is faster (after a few refreshes):\[code\]array took: 5.9999999999505E-6global took: 2.0999999999938E-5\[/code\]But I'm curious to know which method is the best practiced for a simple situation like this?