Currently I am using :
call_user_func(
$func,
$_POST['a'],$_POST['b'],$_POST['c'],$_POST['d'],$_POST['e']
);
However, as things grow in the script to call. The pressing need for something like:
call_user_func_array(
$func,
$array("_POST", $_POST)
);
Is more apparent. The thing overall with this is then I will need to create a new array I believe. Because in my script every $_POST is pushed to $func, besides $_POST[headers]. Though when I try the above it says :
Function name must be a string.
Maybe I just don't know how to work this in correctly. And could use some guidance. Thank you.
A example of how its all called is :
function somefunc($a,$b,$c,$d,$e)
Where $func is being set to one of the function, in example somefunc. Then all data besides headers is being pushed to that function.
In the way I have it now using call_user_func it is functioning properly. Though trying to convert over so that I do not always have to add to it, and that its set dynamically using a array.