title: Does PHP have a feature like Python's template strings?
body: <p>Python has a feature called <a href="http://docs.python.org/release/2.5.2/lib/node40.html">template strings</a>.</p>
  
  <pre><code>&gt;&gt;&gt; from string import Template
  &gt;&gt;&gt; s = Template('$who likes $what')
  &gt;&gt;&gt; s.substitute(who='tim', what='kung pao')
  'tim likes kung pao'
  </code></pre>
  
  <p>I know that PHP allows you to write:</p>
  
  <pre><code>"Hello $person"
  </code></pre>
  
  <p>and have <code>$person</code> substituted, but the templates can be reused in various sections of the code?</p>