title: PHP pointers vs references
body: <p>In PHP, what is the difference between using a pointer such as:</p>
  
  <pre><code>function foo( $var )
  {
      $var = 3;
  }
  
  $a = 0;
  foo( &amp;$a );
  </code></pre>
  
  <p>And reference:</p>
  
  <pre><code>function foo( &amp;$var )
  {
      $var = 3;
  }
  
  $a = 0;
  foo( $a );
  </code></pre>
  
  <p>They both modify the value of the original variable, but are they represented differently internally?</p>