title: Class constant in a string in PHP
body: <p>My reading of <a href="http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing" rel="noreferrer">the manual</a> (the bit just before the section heading "String access and modification by character") is that you can do some fancy tricks with class constants and {} inside a string but you can't do the simple thing that would make this method return the truth:</p>
  
  <pre><code>class c {
      const k = '12';
      public function s() {
          return "Twelve in decimal is {c::k}.";
      }
  }
  </code></pre>
  
  <p>Is the right solution here to concatenate?</p>