Is there a way to call a function through variables?
For instance, I want to call the function Login(). Can I do this:
$varFunction = \"Login\"; //to
I successfully call the function as follows:
$methodName = 'Login'; $classInstance = new ClassName(); $classInstance->$methodName($arg1, $arg2, $arg3);
It works with PHP 5.3.0+
I'm also working in Laravel.