Simple question that I can't find the answer to

From: Date: Fri, 12 Jan 2001 19:19:25 +0000
Subject: Simple question that I can't find the answer to
Groups: php.windows 
Request: Send a blank email to php-windows+get-4953@lists.php.net to get a copy of this message
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" Thanks in advance, John --------------------- Founder of The 'What Kind of Idiot Uses PHP with IIS with Oracle on NT?' Consortium Members: John Asendorf, Thomas Kryger, Florian Clever, Ron Woods, Bod John Asendorf - jasendorf@lcounty.com Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631 Vah! Denuone Latine loquebar? Me ineptum. Interdum modo elabitur.

« previous php.windows (#4953) next »