title: create new variables in class how can i change variable names?
body: <p>I want to create new variable but name as $class..
  For example my $class is:</p>
  
  <pre><code>array("veriekle","vericek","sayfala");
  </code></pre>
  
  <p>I want to include there class in my class. (veriekle.class.php,vericek.class.php,etc.). I can this but how can I create new variable.</p>
  
  <p>If "veriekle".class.php called I want to create new variable as name's "veriekle".
  This is my class I can include but I can't create new variable.</p>
  
  <pre><code>Class Database
  {
      public function __construct($class)
      {
          foreach($class as $class)
          {
              require_once("sub/" . $class . ".class.php");
          }
      }
  }
  </code></pre>