Efficient way to replace placeholders with variables
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/10106052/replace-multiple-placeholders-with-php">replace multiple placeholders with php?</a>  </p>
</blockquote>



<p>I've got a .txt-file working as a template. I've made several placeholders like <code>{{NAME}}</code> and I'd like to replace these with variables. What is the most efficient way to do this? Keep in mind that I have around 10 of these placeholders in my template.</p>

<p>Is there no better way than str_replace?</p>
