How can I get collection result "column headers" or "column names" from query?
Suppose I have $data = Mage::getModel('catalog/product')->getCollection();
and I have some joins with other tables
I can get the data by running foreach on $data
giving me the actual output data.
question: but how can I get the "header name" (or "column name") as I would see it when I run the same query in MySQL
$data
you mean you need to get all array keys within that?