<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: PHP Swap (Simple Swapping)</title>
	<atom:link href="http://www.sajithmr.me/php-swap-simple-swapping/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sajithmr.me/php-swap-simple-swapping</link>
	<description></description>
	<lastBuildDate>Fri, 27 Jan 2012 16:09:46 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Sajith M.R</title>
		<link>http://www.sajithmr.me/php-swap-simple-swapping/comment-page-1#comment-120368</link>
		<dc:creator>Sajith M.R</dc:creator>
		<pubDate>Sat, 31 Jul 2010 10:26:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.sajithmr.com/php-swap-simple-swapping/#comment-120368</guid>
		<description>Yes good , but it won&#039;t work for all types of object swapping, say an array swap . Only for integers</description>
		<content:encoded><![CDATA[<p>Yes good , but it won&#8217;t work for all types of object swapping, say an array swap . Only for integers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yrhon</title>
		<link>http://www.sajithmr.me/php-swap-simple-swapping/comment-page-1#comment-119867</link>
		<dc:creator>yrhon</dc:creator>
		<pubDate>Thu, 29 Jul 2010 08:11:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.sajithmr.com/php-swap-simple-swapping/#comment-119867</guid>
		<description>$a ^= $b ^= $a ^= $b</description>
		<content:encoded><![CDATA[<p>$a ^= $b ^= $a ^= $b</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Hagler</title>
		<link>http://www.sajithmr.me/php-swap-simple-swapping/comment-page-1#comment-87579</link>
		<dc:creator>David Hagler</dc:creator>
		<pubDate>Tue, 01 Dec 2009 17:04:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.sajithmr.com/php-swap-simple-swapping/#comment-87579</guid>
		<description>miah the xor trick only properly works on integers OR if string happen to be the same length, it will work, it&#039;s best to avoid that trick unless you really need it.

$a = &quot;a&quot;;
$b = &quot;gggggg&quot;;

$a = $a ^ $b;
echo &quot;$b &quot;;
$b = $a ^ $b;
echo &quot;$b &quot;;
$a = $a ^ $b;
echo &quot;$a $b &quot;;

// $a = &#039;g&#039;; $b = &#039;a&#039;;</description>
		<content:encoded><![CDATA[<p>miah the xor trick only properly works on integers OR if string happen to be the same length, it will work, it&#8217;s best to avoid that trick unless you really need it.</p>
<p>$a = &#8220;a&#8221;;<br />
$b = &#8220;gggggg&#8221;;</p>
<p>$a = $a ^ $b;<br />
echo &#8220;$b &#8220;;<br />
$b = $a ^ $b;<br />
echo &#8220;$b &#8220;;<br />
$a = $a ^ $b;<br />
echo &#8220;$a $b &#8220;;</p>
<p>// $a = &#8216;g&#8217;; $b = &#8216;a&#8217;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blog SEO</title>
		<link>http://www.sajithmr.me/php-swap-simple-swapping/comment-page-1#comment-66144</link>
		<dc:creator>Blog SEO</dc:creator>
		<pubDate>Thu, 14 May 2009 14:24:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.sajithmr.com/php-swap-simple-swapping/#comment-66144</guid>
		<description>Nice trick, thanks :)

miah, I like your trcik too ;)

Thanks guys !

Tiger</description>
		<content:encoded><![CDATA[<p>Nice trick, thanks <img src='http://www.sajithmr.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>miah, I like your trcik too <img src='http://www.sajithmr.me/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Thanks guys !</p>
<p>Tiger</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: miah</title>
		<link>http://www.sajithmr.me/php-swap-simple-swapping/comment-page-1#comment-52880</link>
		<dc:creator>miah</dc:creator>
		<pubDate>Mon, 23 Feb 2009 16:30:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.sajithmr.com/php-swap-simple-swapping/#comment-52880</guid>
		<description>$a = &#039;bar&#039;;
$b = &#039;foo&#039;;

$a = $a ^ $b;
$b = $a ^ $b;
$a = $a ^ $b;

echo $a . $b;

// its faster and needs less memory ^^</description>
		<content:encoded><![CDATA[<p>$a = &#8216;bar&#8217;;<br />
$b = &#8216;foo&#8217;;</p>
<p>$a = $a ^ $b;<br />
$b = $a ^ $b;<br />
$a = $a ^ $b;</p>
<p>echo $a . $b;</p>
<p>// its faster and needs less memory ^^</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ruX</title>
		<link>http://www.sajithmr.me/php-swap-simple-swapping/comment-page-1#comment-20625</link>
		<dc:creator>ruX</dc:creator>
		<pubDate>Tue, 26 Aug 2008 19:25:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.sajithmr.com/php-swap-simple-swapping/#comment-20625</guid>
		<description>Good idea :)
AFIK, this construction needs more memory.</description>
		<content:encoded><![CDATA[<p>Good idea <img src='http://www.sajithmr.me/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
AFIK, this construction needs more memory.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

