title: How to "invoke" a class instance in PHP?
body: <p>is there any possibility to "invoke" a class instance by a string representation?</p>
  
  <p>In this case i would expect code to look like this:</p>
  
  <pre><code>class MyClass {
    public $attribute;
  }
  
  $obj = getInstanceOf( "MyClass"); //$obj is now an instance of MyClass
  $obj-&gt;attribute = "Hello World";
  </code></pre>
  
  <p>I think this must be possible, as PHP's SoapClient accepts a list of classMappings which is used to map a WSDL element to a PHP Class. But how is the SoapClient "invoking" the class instances?</p>