It seems like in most mainstream programming languages, returning multiple values from a function is an extremely awkward thing.
The typical soluti
PHP example:
function my_funct() { $x = "hello"; $y = "world"; return array($x, $y); }
Then, when run:
list($x, $y) = my_funct(); echo $x.' '.$y; // "hello world"