I have a php array with 4 entries. And I need to call a class method using the data in my array.
$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?