Answer the question
In order to leave comments, you need to log in
Is it possible to write a function to a variable without calling it?
In some modern CMS, I saw something like this: You write
$VARIABLE; what is a function call
? Is it possible to write a function into a variable so that when, for example, $FUNCTION is called, the process is executed $function = $class -> function();
I ask out of curiosity, to improve the readability of the code.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question