Static block help developers manage areas of Magento e-commerce web site which would require template files to be manipulated. Even small modifications will then require creation of a custom module to extend the template and gets time-consuming. A smart and efficient way to accomplish our task is through static blocks. Static blocks are a smart answer!
Accessing a Magento Static Block From a PHP Template File:
// Retrieve the layout object
$layout = Mage::getSingleton('core/layout');
// Generate a CMS block object
$block = $layout->createBlock('cms/block');
// Set the block ID of the static block
// Write the static block content to screen
Accessing a Magento Static Block From A CMS Page
If you have created a CMS page in the Magento administration, sometimes you may want to add a static block inside of it. To accomplish this, you could either add a line of code into the content field or add it to the custom layout xml field.
<block type="cms/block" name="block.name">
To conclude, static blocks can be accessed programmatically easily using the above methodology.