Is it possible to make my function return 2 values? eg function f (){ blah blah
return $id return $value }
How can I assign those two values to two different variables?
Please help
Thanks in advance
What part of the explanation in the manual about returning values do you not understand?
http://www.phpbuilder.com/manual/functions.php
You can't return multiple values, but you can return an array and use list to get the values. Example from tomhath's link:
function small_numbers() { return array (0, 1, 2); }
list ($zero, $one, $two) = small_numbers();