title: Php: what's the difference between $var and &$var?
body: <p>What is the difference between</p>
  
  <pre><code>foreach ($my_array as $my_value) {
  }
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>foreach ($my_array as &amp;$my_value) {
  }
  </code></pre>
  
  <p>?</p>
  
  <p>May I ask you to give me two real-world examples of when to use one and when you use the other?</p>