Have a series of functions I am calling dynamically sort of like this:
$function = 'someFunction';
$x = $function();
.. however, if the function expects parameters, and I don't code it in the call, I seem to crash the page. For example:
function someFunction( $in_param1 ) {
return "SUCCESS";
}
$function = 'someFunction';
// this next line does not work
$x = $function() or die("error");
How can I handle this kind of error?
Thanks -