<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dedy's Personal Site - Web Developer  - PHP Developer - PHP Freelancer &#187; parsing reference</title>
	<atom:link href="http://www.geraiweb.com/wordpress/tag/parsing-reference/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geraiweb.com/wordpress</link>
	<description>Get to know me.</description>
	<lastBuildDate>Thu, 03 Jun 2010 05:06:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Difference between parsing variable and parsing reference</title>
		<link>http://www.geraiweb.com/wordpress/2009/06/24/difference-between-parsing-variable-and-parsing-reference/</link>
		<comments>http://www.geraiweb.com/wordpress/2009/06/24/difference-between-parsing-variable-and-parsing-reference/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 09:46:42 +0000</pubDate>
		<dc:creator>dedy</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Pemrograman]]></category>
		<category><![CDATA[parsing reference]]></category>

		<guid isPermaLink="false">http://www.geraiweb.com/wordpress/?p=187</guid>
		<description><![CDATA[I found an interesting code when I'm coding.

what  is difference between :

$_fx  = &#038;$a ;

with

$_fx  = $a ;

The first one,  we call it parsing reference, and the second one , is parsing value.

you can see the difference with this sample : ]]></description>
			<content:encoded><![CDATA[<p>I found an interesting code when I&#8217;m coding.</p>
<p>what  is difference between :</p>
<p>$_fx  = &amp;$a ;</p>
<p>with</p>
<p>$_fx  = $a ;</p>
<p>The first one,  we call it parsing reference, and the second one , is parsing value.</p>
<p>you can see the difference with this sample :</p>
<p><code>
<pre class="brush: php">
&lt;?&lt;/code&gt;&lt;/code&gt;

&lt;code&gt;&lt;code&gt; &lt;/code&gt;

&lt;code&gt;echo &quot;without reference: &lt;BR&gt;&quot;;
$a = 5;
$b = $a;

echo &quot; a : 5&lt;BR&gt;&quot;;
echo &#039;$b = $a &lt;BR&gt;&#039;;
echo &quot;${b} = ${a} &lt;BR&gt;&quot;;

for($i=1;$i&lt;5;$i++){
$b++;
echo &quot;a(${a}) | b(${b}) &lt;BR&gt;&quot;;
}

echo &quot;&lt;BR&gt;&lt;BR&gt;&quot;;

echo &quot;with reference (&amp;amp;amp;amp;) : &lt;br&gt;&quot;;

$a = 5;
$b = &amp;amp;amp;amp;$a;

echo &quot; a : 5&lt;BR&gt;&quot;;
echo &#039;$b = &amp;amp;amp;amp;$a &lt;BR&gt;&#039;;
echo &quot;${b} = ${a} &lt;BR&gt;&quot;;

for($i=1;$i&lt;5;$i++){
$b++;
echo &quot;a(${a}) | b(${b}) &lt;BR&gt;&quot;;
}

?&gt;

&lt;/code&gt;

&lt;/code&gt;

&lt;code&gt;&lt;code&gt;</pre>
<p></code></p>
<p>as you can see, using &#8216;&amp;&#8217; , the value of $a is also changed .</p>
<p>so what I get is , if you using a reference, any changes you made on the reference variable ($b) will efect the real variable ($a)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.geraiweb.com/wordpress/2009/06/24/difference-between-parsing-variable-and-parsing-reference/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
