Assigning one var to multiple vars
| From: | Matthew Sims | Date: | Thu, 09 Sep 2004 20:38:39 +0000 |
| Subject: | Assigning one var to multiple vars | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-196255@lists.php.net to get a copy of this message | ||
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;
--
--Matthew Sims
--<http://killermookie.org>