Executing PHP code stored partially in a string
<p>Say I have a string "Some text [login_form] some other text". How can I replace '[login_form]'  with the PHP code "require('somescript.php');" and run the 'require' function.</p>

<p>I don't want to use 'eval' as my string contain HTML and other code and also has great possibility of errors.</p>
