[pmwiki-devel] PHP question...
The Editor
editor at fast.st
Wed Mar 7 20:29:10 CST 2007
I'm wondering if it is possible to store a function in a variable and
then call that variable somehow without using the eval command.
For example, something equivalent to:
$command = "myFunction";
$parameter = "some value";
eval ("$command($parameter)");
function myFunction($x) {
...
I don't want to use eval because of security concerns as the parameter
will contain user supplied information. Any suggestions?
Cheers
Dan
More information about the pmwiki-devel
mailing list