Use property value as method name
<p>I need to use a value of a property in my class as a dynamic method name, but I am getting a:</p>

<pre><code> Catchable fatal error: Object of class dispatcher could not be converted to string in ...
</code></pre>

<p>What I want to do is:</p>

<pre><code> class test {
      var $objectname = "object_name";
      var $methodname = "method";

      public function test_method() {
           require_once("some_class_file");
           // Here is where I am falling out:
           $some_object = new $this-&gt;objectname();
           $some_object-&gt;$this-&gt;methodname();
      }
 }
</code></pre>

<p>So in other words I want to dynamically set the object name and potential methods from pre-existing properties in my class.</p>

<p>Any ideas?</p>
