title: Creating a class name from a variable
body: <p>I would like to define the class name using variables in PHP. Is this possible?</p>
  
  <p>Let me explain.</p>
  
  <p>I am a small custom CMS that allows the end user to configure a prefix for the table names. So a user can define the prefix such as "rc_". The problem is, I have a lot of models that use the table name as the class. So for example, if one of my tables is <code>rc_posts</code>, the model will be called </p>
  
  <pre><code>class MyModel_Rc_posts extends MyModelController {
           // code here
  }
  </code></pre>
  
  <p>Is there any way to define a class using variables in PHP WITHOUT using <code>eval()</code> such as:</p>
  
  <pre><code>class MyModel_{$PREFIX}posts extends MyModelController {
  // code here
  }
  </code></pre>
  
  <p>The reason I want to avoid eval, is because some of these classes can get pretty long. Suggestions appreciated.</p>