title: How to create new object using classname stored in variable and how to pass another variable into this class's constructor?
body: <p>I have classname stored in variable $classname; also I have an array of values I should pass into object constructor.</p>
  
  <pre><code>$classname = "MyClass";
  $variables = array(1, 2, 3, 4);
  </code></pre>
  
  <p>I need</p>
  
  <pre><code>$objInstance = new MyClass(1, 2, 3, 4);
  </code></pre>
  
  <p>How?</p>
  
  <p>Thank you.</p>