Call dynamic Function with unknown number of params
<p>Not sure exactly how to describe this, but here goes ..</p>

<p>I have a large PHP function library that I want to expose via some sort of api interface.</p>

<p>For example, this query string:</p>

<pre><code>api.php?function=myFunction&amp;param1=xxx&amp;param2=xxx&amp;
</code></pre>

<p>Would translate into this:</p>

<pre><code>$ret = myFunction( $param1, $param2 );
</code></pre>

<p>.. whereas this query string ..</p>

<pre><code>api.php?function=myFunction&amp;param2=xxx&amp;param1=xxx&amp;
</code></pre>

<p>Would translate into this:</p>

<pre><code>$ret = myFunction( $param1, $param2 );
</code></pre>

<p>Note that I expect to have to rely on the query string to place the parameters required in the query, and in the order required.</p>

<p>Is this doable? I have a few ideas that <em>may</em> work, but thought I'd put it up here and perhaps get some better ideas from the PHP gurus.</p>

<p>Thanks -</p>
