How to have constants evaluated in strings?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2203943/include-constant-in-string-without-concatenating">Include constant in string without concatenating</a>  </p>
</blockquote>



<p>How can I get a constant to be evaluated in a string like variables are?</p>

<pre><code>$foo = "like";
define('BAR', 'fish');

// None of these give me 'I like to eat fish on Tuesday.'
echo "I $foo to eat BAR on Tuesday.";
echo "I $foo to eat {BAR} on Tuesday.";
echo 'I $foo to eat BAR on Tuesday.';

// This works but is undesirable
echo 'I $foo to eat '.BAR.' on Tuesday.';
</code></pre>
