title: Cannot evaluate a namespace path to class as variables
body: <p>When I hardcode a namespace and class, a new object is instantiated. But any way I try to instantiate the namespace as a variable, the class "does not exist".
  How do I get PHP to evaluate the entire path to the class dynamically?</p>
  
  <pre><code>class Export
  {
    public function exportIt($appPath) // $appPath = 'theApp'
    {
      $appClass = 'thisClass';
  
      $appObj = new $appPath . '\\' . $appClass(); // &lt;-- Says class does not exist :-(
  
      $appObj = new theApp\thisClass(); // &lt;-- Instatiates OBJECT! :-)
    }
  }
  </code></pre>