title: what is the value of $a and $b after the function call and why? (pass by reference and pass by value)
body: <p>what is the value of $a and $b after the function call and why?</p>
  
  <p>Just to clarify the difference between <code>pass by reference</code> and <code>pass by value</code></p>
  
  <blockquote>
  <pre><code>function doSomething( &amp;$arg ) {
      $return = $arg;
      $arg += 1;
      return $return; }
  
  $a = 3;
  $b = doSomething( $a );
  </code></pre>
  </blockquote>