title: list all defined constants from a file in php
body: <p>I have some php files that includes some language constants</p>
  
  <pre><code>define("_SEARCH","Search");
  define("_LOGIN","Login");
  define("_WRITES","writes");
  define("_POSTEDON","Posted on");
  define("_NICKNAME","Nickname");
  </code></pre>
  
  <p>now I need to read each file and list all constants and their values </p>
  
  <p>and to return an output like this :</p>
  
  <p>constant name :
  value is :</p>
  
  <p>so I think there should be function to list all defined constants of a given php file.</p>
  
  <p>I'm aware of functions like token_get_all or get_defined_constants but i wasn't able to do it.</p>