Get PHP assoc array key in loop
<p>I have the following code:</p>

<pre><code>while ($row = mysql_fetch_array($result, MYSQL_NUM)) 
 {
  for ($i=0; $i&lt;count($row); $i++)
  {
            (DO THING HERE)
   $row[$i] = str_replace("\n", " ", $row[$i]);
   $row[$i] = str_replace("\r", " ", $row[$i]);
  }

 }
</code></pre>

<p>I basically want to do, if the associative array key is equal to "email" (so $row['email']) then append "@gmail.com" to it.</p>
