title: PHP Mysql_fetch_array fails if fieldname is 0
body: <p>using mysql_fetch_array() for a simple query- </p>
  
  <pre><code>SELECT id, name, roll FROM student
  </code></pre>
  
  <p>I get-></p>
  
  <pre><code>Array (
      [0] =&gt; 1
      [id] =&gt; 1
      [1] =&gt; sam
      [name] =&gt; sam
      [2] =&gt; 5
      [roll] =&gt; 5
  )
  </code></pre>
  
  <p>But, if I replace roll with 0-></p>
  
  <pre><code>SELECT id, name, 0 FROM student
  </code></pre>
  
  <p>It sends-></p>
  
  <pre><code>Array (
      [0] =&gt; 0
      [id] =&gt; 1
      [1] =&gt; sam
      [name] =&gt; sam
      [2] =&gt; 0
  )
  </code></pre>
  
  <p>The 'id' is giving '0'. Whereas the query works well in mysql.</p>
  
  <p>is it a bug of mysql_fetch_array?</p>