How to call CMS block in phtml file in Magento 2

If you want to call CMS block in phtml file in Magento 2 use below code: How to call CMS block in phtml file in Magento 2
<?php
echo $this->getLayout()
->createBlock('Magento\Cms\Block\Block')
->setBlockId('enter_block_id_here')
->toHtml();
?>

sexpoundsofttechsolution

How to call CMS block in phtml file in Magento 2