PHP Help What is wrong?

  • Thread starter Thread starter David H
  • Start date Start date
D

David H

Guest
I got this error how do i fix it? Parse error: syntax error, unexpected T_DOUBLE_ARROW

Here is the code
// MOD: xbox
'profile_xbox' => request_var('profile_xbox',$user->data['user_profile_xbox']),
'profile_xbox' => request_var('profile_xbox', $user->data['user_profile_xbox']),
go by the additional details for second line
 
Try this:
'profile_xbox' => request_var('profile_xbox', $user->data['user_profile_xbox']);

If that doesn't fix the problem, can you give some context? The error might be caused by something else around it.
 
Without seeing the user-defined class $user and function request_var, it's impossible to assist you.

A casual glance suggests you are not properly delimiting your variables and probably are not properly using the extraction operator.

Perhaps this is the fix:
$profile_xbox = request_var('profile_xbox', $user->data['user_profile_xbox']);

Or this, since you don't properly terminate the line:

'profile_xbox' => request_var('profile_xbox', $user->data['user_profile_xbox']);
 
Back
Top