I need to pass a function as a parameter to another function and then call the passed function from within the function...This is probably easier for me to explain in code..
I think you are looking for call_user_func.
An example from the PHP Manual: