View Single Post
  #2 (permalink)  
Old 09-27-2006, 12:32 PM
Thomas Thomas is offline
Newbie
 
Join Date: Sep 2006
Posts: 15
Credits: 0
Rep Power: 9
Thomas is on a distinguished road
Default

Have you tried using an array to pass each argument back?

function fn($arg1, $arg2)
{
return array($arg1, $arg2);
}

Use the List function to set variables after calling your function like so:

list($var1, $var2) = fn(1, 2);

This will simply set $var1 to '1' and $var2 to '2'

Last edited by Thomas; 09-27-2006 at 12:58 PM.
Reply With Quote