title: how to get array format from mysql result with php
body: <p>I want to get array format from mysql database.
  Example,Let I have <strong>name table</strong>.</p>
  
  <p><em>Name Table</em></p>
  
  <pre><code>Id    name
  
  1    jone
  2    smith
  3   waiyan
  </code></pre>
  
  <p>I want to get this data array form.</p>
  
  <pre><code>$name=array('jone','smith','waiyan');(//I want to get this format)
  </code></pre>
  
  <p>How can get this result? I am beginner for php.Please answer me.Thank your contribute.
  Sorry for my english.</p>