title: Get the column (field) name from an array
body: <p>I do have a problem with this array:-</p>
  
  <pre><code>array(1) { ["fdata"]=&gt; array(4) { [0]=&gt; object(stdClass)#19 (4) { ["Type ID"]=&gt; string(4) "ET01" ["Type Name"]=&gt; string(30) "Teaching " ["Type Code"]=&gt; string(2) "T " ["Type Status"]=&gt; string(10) "Active " } [1]=&gt; object(stdClass)#20 (4) { ["Type ID"]=&gt; string(4) "ET02" ["Type Name"]=&gt; string(30) "Non Teaching " ["Type Code"]=&gt; string(2) "N " ["Type Status"]=&gt; string(10) "Active " } [2]=&gt; object(stdClass)#21 (4) { ["Type ID"]=&gt; string(4) "ET03" ["Type Name"]=&gt; string(30) "Contract " ["Type Code"]=&gt; string(2) "C " ["Type Status"]=&gt; string(10) "Locked " } [3]=&gt; object(stdClass)#22 (4) { ["Type ID"]=&gt; string(4) "ET04" ["Type Name"]=&gt; string(30) "Short Contract " ["Type Code"]=&gt; string(2) "SC" ["Type Status"]=&gt; string(10) "Active " } }
  </code></pre>
  
  <p>How can i get the column names? That is Type ID, Type Name etc from this array? I am using php</p>
  
  <p>Thank you</p>