At 14:19 12.01.2001 -0500, Asendorf, John wrote:
>Is there a single line of code to do the following?
>
>I'm trying to interchange two variables' contents... I can do it with the
>following, but I was just wondering... I can't find it if there is...
>
>$a = "abc";
>$b = "def";
>
>$temp = $b;
>$b = $a;
>$a = $temp;
>
>//now $a = "def" and $b = "abc"
the question would be why you have to exchange the variablenames, maybe you
can use variable variables $$ or ${}.
i depends on what you want to do.
daniel
/*--
daniel beulshausen - [EMAIL PROTECTED]
using php on windows? http://www.php4win.de
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]