Execute unknown function name in PHP?
<p>I store a string in a database called "my_function". So to access this string, I'm in scenario where I call:</p>

<pre><code>$row-&gt;theFunction
</code></pre>

<p>Furthermore, I am in a class where this function is define, and can ONLY be called like so:</p>

<pre><code>$this-&gt;my_function($param1, $param2);
</code></pre>

<p>Now, my problem is, I need to execute my_function, using this. This DOES NOT work:</p>

<pre><code>call_user_func( '$this-&gt;'.$row-&gt;theFunction, $param1, $param2 );
</code></pre>

<p>What am I doing wrong?</p>
