title: Assign variable value to a constant
body: <p>A PHP constant is defined like this:</p>
  
  <pre><code>define('const_name','const_value');
  </code></pre>
  
  <p>Tried like this:   </p>
  
  <pre><code>define('const_name', $variable_name);  
  </code></pre>
  
  <p>Why? because I'm a beginner and I figured if this works:  </p>
  
  <pre><code>define('const_name', 50);  
  </code></pre>
  
  <p>my version will work also. It doesn't. Should it work and it doesn't because I mistyped something, or my attempt is just plain stupid?</p>
  
  <p>Note: Inside my variable is a Google Analytics ID extracted from a mysql DB. Just a string like this UA-XXXXX-Y, nothing more.</p>