title: Creating Object from variable name
body: <p>How do i create my class object in single line from a variable:</p>
  
  <pre><code>$strClassName = 'CMSUsers';
  $strModelName = $strClassName.'Model';
  $strModelObj = new $strModelName();
  </code></pre>
  
  <p>The above code successfully creates my CMSUsersModel class object but when i try:</p>
  
  <pre><code>$strClassName = 'CMSUsers';
  $strModelObj = new $strClassName.'Model'();
  </code></pre>
  
  <p>it pops error.... saying:</p>
  
  <pre><code>Parse error: syntax error, unexpected '(' in 
  </code></pre>