title: How to load PHP class dynamically with namespace
body: <p>Here is my static code - </p>
  
  <pre><code>$tireBrick = new DataObject\Objectbrick\Data\classname($object);
  </code></pre>
  
  <p>What I need is, I need to change "classname" into variable (dynamically load the class) </p>
  
  <pre><code>`$tireBrick = new DataObject\Objectbrick\Data\$brickName($object);`  //But php doesn't allow to use this syntax. 
  </code></pre>
  
  <p>As you can see it'll dynamically assign "<code>$brickName($object)</code>"</p>
  
  <p>Can anyone help me to load this class dynamically?</p>
  
  <p>Thanks,
  Tharanga.</p>