Function name inside a variable
Posted
by John Doe
on Stack Overflow
See other posts from Stack Overflow
or by John Doe
Published on 2010-05-03T23:48:43Z
Indexed on
2010/05/03
23:58 UTC
Read the original article
Hit count: 213
Hello. I have a simple question (i guess). I'm getting the name of the function inside a variable from database. After that, i want to run the specific function. How can i echo the function's name inside the php file? The code is something like this:
$variable= get_specific_option;
//execute function
$variable_somesuffix();
The "somesuffix" will be a simple text. I tried all the things i had in mind but nothing worked.
© Stack Overflow or respective owner