How to get static block through code in phtml file in magento

$this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘static block code’)->toHtml();