title: PHP while(variable=mysql_fetch_assoc) - explanation
body: <p>I have been working with C# so this is quite strange for me:</p>
  
  <pre><code>    while($variable=mysql_fetch_assoc)
  
  {   $X=$variable['A'];
      $Y=$variable['B'];  
  }
  </code></pre>
  
  <p><strong>If it is like an ordinary loop, then X,Y will be reset with every loop, right?</strong></p>
  
  <p>I have not been able to look up in PHP manual how it works. I guess that in each loop it advances to next element of assoc.array. But what is this generally called in PHP? I am just not used to see '=' in loop condition.</p>