title: Is that possible to expand function call in PHP string?
body: <p>I tried to call <code>foo()</code> inside a string like this:</p>
  
  <pre><code>echo "This is a ${foo()} car";
  
  function foo() {
      return "blue";
  }
  </code></pre>
  
  <p>but, it ends up with a syntax error.</p>
  
  <p>I found <a href="http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing.complex" rel="nofollow">here</a> something similar, but not exactly what I need:</p>
  
  <pre><code>echo "This is the value of the var named by the return value of getName(): {${getName()}}";
  </code></pre>
  
  <p>Is that possible to do this ?</p>