title: get metadata from a result set in zend framework
body: <p>I have a code in php as:</p>
  
  <pre><code>$result = mysql_query($cxn,$sql_query)
  $dataset=  mysqli_fetch_fields($result);
  for ($i = 0; $i &lt; 13; $i++) {
        $dataset[$i]-&gt;name
   }
  </code></pre>
  
  <p>I want the above code in zend.</p>
  
  <p>Here mysql_fetch_fields($result) returns the information about fields from the given result set $result.How to do it in zend framework?I have googled it , I found that we can retrieve the information about colums from a particular table but from a result set how to retrieve in zend framework??</p>