title: PHP foreach loop example confusion
body: <p>One of the examples of a <code>foreach</code> loop in PHP is </p>
  
  <pre><code>foreach ($row as $key =&gt; $value) { 
      // somecode
  }
  </code></pre>
  
  <p>I am having trouble understanding what the <code>=&gt;</code> is doing. Can anyone run me through how it is "seen" or evaluated by PHP? 
  What is the order of operation, what value is assigned to <code>$key</code>? </p>
  
  <p>What makes it different from:</p>
  
  <pre><code>foreach ($row as $value) { 
      // somecode
  }
  </code></pre>
  
  <p>?</p>
  
  <p>I logically I thought that the value of <code>$value</code> would be assigned to <code>$key</code>, then it would be assigned as a row of <code>$row</code>, but that is obviously incorrect...</p>