title: Scope of DEFINE variable in php
body: <p>Just a quick questions please, that I can't find the answer to.</p>
  
  <p>If I define a variable like the below example:</p>
  
  <pre><code>DEFINE('THIS_TEST', 'ABC');
  </code></pre>
  
  <p>What is the scope of this? Could I then use this with in a class/object function:</p>
  
  <pre><code>public function testFunction() {
      echo THIS_TEST;
  } 
  </code></pre>
  
  <p>I have tried this in something similar but am not getting the results I was expecting, although this could be related to other issues.</p>
  
  <p>Any advice would be appreciated.</p>