This question describes how to set the value of a term reference field using PHP. But what do I do if I want to set the value of a term reference field in the user profile to multiple terms?
I am trying to set the value to term IDs 27 and 28. Here is my code so far:
$user->field_yourfield_name[LANGUAGE_NONE]['tid'] = 27; user_save($user);