magento Get store name and other details from system configuration Get current store code


Example

Mage::app()->getStore()->getCode();

This returns store code, e.g. 'en' for a storefront that is setup for English and called 'en', and not the numerical id.