title: Foreach loop outputting letter rather than value
body: <p>I have got the query below and i am trying to loop through the result but the echo only returns the second letter of the array instead of the whole 2nd array.</p>
  
  <pre><code>$tsql = "SELECT UserId, Email FROM Membership";
  $stmt = sqlsrv_query($conn, $tsql);
  $row = sqlsrv_fetch_array($stmt, SQLSRV_FETCH_NUMERIC);
  while ($row) {
      $body .= $row[0];
      foreach($row as $email)
      {
          echo $email[1]. "&lt;BR&gt;   ";
      }
  }
  ;
  </code></pre>