HTML treat code within brackets as PHP code
<p>I am building my website completely in PHP. I am trying to make it as much flexible as possible.</p>

<p>I have seen there are some softwares made in PHP that are able to get a HTML page, and before showing it, the PHP code recognizes the code inside brackets <code>{PHP Code}</code> as PHP code, runs it and only then shows the final page.</p>

<pre><code>&lt;h1&gt;Hi My Name is {echo $name}&lt;/h1&gt;
</code></pre>

<p>How can I achieve the same? I know there is Smarty Code. But I do not want to learn Smarty, I just want to know how to check a HTML page with PHP, find every bracket and threat that as PHP before showing the page..?</p>

<p>Can you point me somewhere?</p>
