title: Codeigniter get key of the row object
body: <p>I am using codeigniter. I have a query done to the database which returns a object $a.</p>
  
  <p>To access the value of the property of $a i have to do something like</p>
  
  <pre><code>$a-&gt;property
  </code></pre>
  
  <p>Is there any way I can find the name of the property as well? Thanks in advance!</p>