Setting Drupal node select list field value programatically
<p>I have a Drupal 7 node with custom fields. I can successfully set single values to a select list field programatically via the code in appendix 1. But I want to assign multiple values to this select list. (It has been configured to accept multiple values in the backend.)</p>

<p><strong>Question:</strong></p>

<p>What is the correct syntax to assign multiple values from a select list programatically to a Drupal node?</p>

<p><strong>Code I have tried:</strong></p>

<pre><code>$node-&gt;field_referee_status[LANGUAGE_NONE][0]['value'] = 'pending', 'declined';
</code></pre>

<p>The above code results in the below error:</p>

<pre><code>*Parse error*:  syntax error, unexpected ',' in
*/home/scienceorg/public_html/sites/all/modules/rules/modules/php.eval.inc(125)
: eval()'d code* on line *77*
</code></pre>

<p><strong>Appendix 1:</strong></p>

<pre><code>$node-&gt;field_referee_status[LANGUAGE_NONE][0]['value'] = 'pending';
</code></pre>