PHP Variable function
In the previous variable section, we learned about variable variables. A variable function is just a variant of a variable, a variant expression.
Variable functions, we will also call them variable functions. A brief review of the previous knowledge points:
$hello = 'world';
$world = 'Hello';
/ / The output is: Hello
Because $hello was first interpreted as world, then the world before the $ character is output: Hello.
The use of variable functions is this:
Echo 'chicken stewed mushrooms';
$fu = 'demo';
// Turn $fu into a demo, add a parenthesis after the demo, and execute the function.
//Change the value of $fu to the test string and try again?
It is recommended that in the basic grammar stage, you should not think about the final processing scenario, because the final processing scenario tells everyone that there is no grammatical basis and you will not understand.
For example: a variable function, also called a variable function. Can be used in future MVC, object-oriented design patterns, etc. So don't go to the bottom.