title: PHP - Ampersand before the variable in foreach loop
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3737139/reference-what-does-this-symbol-mean-in-php">Reference - What does this symbol mean in PHP?</a>  </p>
  </blockquote>
  
  
  
  <p>I need to know why we use ampersand before the variable in foreach loop</p>
  
  <pre><code>foreach ($wishdets as $wishes =&gt; &amp;$wishesarray) {
      foreach ($wishesarray as $categories =&gt; &amp;$categoriesarray) {
  
      }
  }
  </code></pre>