How to include CMS block in template file(.phtml)?

PUT THE BELOW CODE IN PHP TAG WITH ECHO. YOU WILL FIND YOUR BLOCK WILL BE THERE.

YOU NEED TO PUT THE BLOCK ID WHERE I HAVE WRITTEN THE “static_block_id”. REPLACE IT WITH THE ID NAME WHICH YOU WANT TO PRINT.