Posts: 39
Location: Aachen, Germany
|
I'd like to create a function that gets the name of another function as a parameter so that this function may be called later.
It might look a bit like this, but I'm openminded for propper code
PHP Code:
function my_function(call_me_function) { call_me_function(); } myfunction(another_function);
I'm not sure if that is possible but it would safe me the time of writing an endless case block with all the little functions that might be called and browsing through a list of additional functions that might be edited later. If I could just say the name of the function I'd like to call that would be one simple line
Oh and I think my host provides me with some PHP4 version, but if you know a way to do it in PHP5 I'd also be interested
|