Re: Assigning one var to multiple vars
| From: | Jason Wong | Date: | Thu, 09 Sep 2004 21:00:14 +0000 |
| Subject: | Re: Assigning one var to multiple vars | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-196261@lists.php.net to get a copy of this message | ||
On Friday 10 September 2004 04:38, Matthew Sims wrote:
> Just mostly curious but is there a way to assign one variable to multiple
> variables in one single line?
>
> Rather than do this:
>
> $var2 = $var1;
> $var3 = $var1;
>
> Is there a method to perform a:
>
> ($var2,$var3) = $var1;
manual > Expressions
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Nothing astonishes men so much as common sense and plain dealing.
-- Ralph Waldo Emerson
*/