title: How to get stock status from product collection in magento
body: <p>here is my product collection can anyone help to get me stock status from product collection.</p>
  
  <pre><code>$collection = Mage::getModel('catalog/category')
                  -&gt;load($categoryId)
                  -&gt;getProductCollection()
                  -&gt;addAttributeToSelect('*')
                  -&gt;addAttributeToFilter('visibility', array(
  Mage_Catalog_Model_Product_Visibility::VISIBILITY_BOTH,
  Mage_Catalog_Model_Product_Visibility::VISIBILITY_IN_CATALOG));
  return $collection;
  </code></pre>