Jay Blanchard wrote: > [snip] > eval('$return = $function($input);'); > [/snip] > > The problem is the quotes...the string is not truly being eval'd. Change > to double quotes > > eval("$return = $function($input);");
thanks for the tip but i am sure you mean: eval("\$return = \$function(\$input);"); otherwise the variables gets expanded before they get to eval and i end up with a syntax error. i found a solution (hopefully) with: if(function_exists($function)){ eval('$return = $function($input);'); }else{ // function does not exists } which works quit nicely for now. not sure if that's a good thing to do. thanks! david -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php