title: Get Row Number (int) from mysqli_fetch_array
body: <p>For example i have 3 rows in my query. And i was execute it with while mysql_fetch_array.</p>
  
  <p>So the code become like this</p>
  
  <pre><code>$query = "select * from schedule where kode_schedule = '".$q."'";
  $query_exec = mysqli_query($conn, $query) or die(mysqli_error($conn));
  while($data = mysqli_fetch_array($query_exec))
  {
     // i want to echo row number //
     echo $data['kode_schedule'];
     echo $data['nim'];
  }
  </code></pre>
  
  <p>So the result become like this :</p>
  
  <pre><code>1 | KD_0001  | 32110024
  
  2 | KD_0002 | 32110023
  
  3 | KD_0003 | 32110022
  </code></pre>
  
  <p>The main question is how to get the row number? <code>{1 , 2 , 3}</code></p>