title: PHP equals arrow operator in a foreach loop
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4758791/what-does-k-v-in-foreachex-as-k-v-mean">What does $k =&gt; $v in foreach($ex as $k=&gt;$v) mean?</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to understand what this means:</p>
  
  <pre><code>foreach($this-&gt;domains as $domain=&gt;$users) {  
  
  // some code...
  
  }
  </code></pre>
  
  <p>I understand <code>$this-&gt;domains</code> is an array that <code>foreach</code> will index over. But what does <code>as $domain=&gt;$users</code> mean? I have only seen the <code>=&gt;</code> operator used in an array to set (key, value) pairs. The class has a member called <code>$domain</code>, but I assume that would be accessed as <code>$this-&gt;domain</code>.</p>