title: Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, array given in EasyPHP-DevServer
body: <pre><code>&lt;?php 
      $resultset=array();
      $arr = array("id"   =&gt; 1,"name" =&gt; 'name',"email" =&gt; 'a@gmail.com');
      echo "&lt;pre&gt;";
      print_r($arr);// its working 
      if($arr === FALSE) 
      { 
          die(mysql_error());//TODO: better error handling
      }
      while($row = mysqli_fetch_array($arr))// not working
      {
          $id = $row['id'];
          echo $id;
          exit;
      } 
  ?&gt;  
  </code></pre>