Not sure exactly how to describe this, but here goes ..
I have a large PHP function library that I want to expose via some sort of api interface.
For example, this query string:
api.php?function=myFunction¶m1=xxx¶m2=xxx&
Would translate into this:
$ret = myFunction( $param1, $param2 );
.. whereas this query string ..
api.php?function=myFunction¶m2=xxx¶m1=xxx&
Would translate into this:
$ret = myFunction( $param1, $param2 );
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.
Is this doable? I have a few ideas that may work, but thought I'd put it up here and perhaps get some better ideas from the PHP gurus.
Thanks -