title: db_fetch_array() vs. db_fetch_object()
body: <p>Drupal provides these two methods for iterating through a db_query() result. For example,</p>
  
  <pre><code>$users = array();
  $result = db_query('SELECT uid FROM {users} WHERE status=0 AND login=0');
  while ($row = db_fetch_object($result)) {
      $users[] = $row-&gt;uid;
  }
  </code></pre>
  
  <p>However, it seems that db_fetch_array($result) could be used just the same here, only with $row['uid'] on the next line.</p>
  
  <p>What is the difference between these two methods? Are they completely interchangeable?</p>
  
  <p>Source: <a href="http://api.drupal.org/api/group/database/6" rel="noreferrer">http://api.drupal.org/api/group/database/6</a></p>