getting function name dynamically
<p>I need to get my function name called dynamically.  </p>

<pre><code>$myFunction = isset($somecondition) ? "function1(100,100)" : "function(300,300)";
</code></pre>

<p>then I need to call the method </p>

<pre><code>$myclass-&gt;$myFunction;
</code></pre>
