If you don't like arrays you can use objects:
function multireturn()
{
$result->first = "Ticket #1";
$result->second = "Ticket #2";
return $result;
}
--
Sincerely, val petruchek
"Andy" <[EMAIL PROTECTED]> �������/�������� � �������� ���������:
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hi there,
>
> i am wondering if it is possible to return more than 1 value from a
> function?
>
> something like
>
> test(){
> return $value1, $value2
> }
>
> Thanx for any help,
>
> Andy
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php