PHP code Output
<p>I was studying for my finals and I came across this question: </p>

<blockquote>
  <p>write the output after running this code.</p>
</blockquote>

<pre><code>&lt;?php
function swap($x, $y) 
{
  $x = $x + 1;
  $y = $y + 2;
  return $x * $y;
}

$a = 3;
$b = swap($a, $a);
print "$a, $b";
$b = swap(&amp;$a, &amp;$a);
print "$a, $b";
?&gt;
</code></pre>

<p>I understand exactly what this code does, however after I ran it I got a completely different answer to what I answered with and I really don't understand the output. 
The output I got was 3, 206, 36.</p>

<p>Could someone explain the output to me?</p>
