Hi I have such question.
I have a php array with 4 entries. And I need to create a CLASS task with them.
$array=array('USER','username','other','test');
This I want to use to generate this
$array[0]::find_by_$array[1]($array[3]);
it must look as
USER::find_by_username(test);
How I can convert the array values into this line ?
What is the correct syntax ?
But this isn’t the cleanest way to manage your code, there’s no validation that the class or method exists, so subject to potential failure