title: PHP Declaring constant in namespace
body: <p>I want to declare constants inside of a namespace. I want them not to be visible outside of it of course.</p>
  
  <p>Using define() won't work because it makes constants global regardless of the namespace it's executed in (if i understood well).</p>
  
  <p>So can i do :</p>
  
  <pre><code>namespace paths;
  
  const models  = 'Models/';
  const views   = 'Views/';
  const classes = 'Classes/';
  </code></pre>
  
  <p>And somewhere else :</p>
  
  <pre><code>require_once(paths\models.'user.php'); // works
  require_once(models.'user.php');       // fails
  </code></pre>
  
  <p>Also if i do :</p>
  
  <pre><code>namespace ns;
  namespace subNs;
  </code></pre>
  
  <p>Am i in ns\subNs or in subNs ?</p>
  
  <p>PS: i know doing require_once('Models/user.php'); would be simpler, but that's just an example.</p>