I am getting the error:
Function name must be a string on this code:
$profile_data = $user_data('first_name','last_name','email');
Any ideas why this could be?
I am getting the error: Function name must be a string on this code:
Any ideas why this could be? |
|||
While you can use variables as function-names, to do so requires the variable to be a string. The variable If none-of-the-above helps, please all relevant code, specifically the creation of the | |||||||||||||||||||||
|
in php function define following
| |||
|
$
beforeuser_data
? With the dollar sign this syntax is calling a variable function. – Jon Oct 11 '12 at 12:43var_dump($user_data);
outputs if you place it exactly above that line. A related section in the PHP manual is called Variable Functions and might shed some light, too. What is the function (name?) you wanted to call? – hakre Oct 11 '12 at 12:44var_dump
etc) otherwise it's hard to say what exactly causes the error. – hakre Oct 11 '12 at 12:50