Re: More than one values returned?
| From: | TG | Date: | Tue, 19 Feb 2008 01:40:44 +0000 |
| Subject: | Re: More than one values returned? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-269576@lists.php.net to get a copy of this message | ||
You can't return more than one variable, but you can return an array that
contains multiple values.
$x = array('val1', 'val2');
return $x;
-TG
----- Original Message -----
From: Teck <tek.katu@gmail.com>
To: php-general@lists.php.net
Date: Tue, 19 Feb 2008 10:31:02 +0900
Subject: [PHP] More than one values returned?
> Hi,
>
>
> Is it possible to "return" more than one values in PHP?
>
> return $x;
> return $y;
>
> They don't work for me.
>
> -T
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>