Sometimes we require to call a function with the name given as string variable. I wanted it. Just wondering how to do that in PHP? Here are the methods:
We have one inbuilt function to solve this purpose 1.
call_user_func and another way is 2. Using function name as variable.