title: How to Convert mysql to array result with number
body: <p>I have php code like this</p>
  
  <pre><code>$sql = mysql_query("SELECT userName FROM `rcpa_users` WHERE upline_users = '$selectuname'");
  while($tjans = mysql_fetch_array($sql)){    
  
  print_r($tjans);
  
  }
  </code></pre>
  
  <p>But output show this </p>
  
  <pre><code>Array ( [userName] =&gt; mita ) 
  Array ( [userName] =&gt; wendyang ) 
  Array ( [userName] =&gt; viviekosasih )
  </code></pre>
  
  <p>Now, how to convert array like this result</p>
  
  <pre><code>Array
  (
      [0] =&gt; mita
      [1] =&gt; wendyang
      [2] =&gt; viviekosasih
  )
  </code></pre>
  
  <p>so I can call with echo $tjans[0], $tjans[1], $tjans[2]</p>
  
  <p>Thank You..</p>