Programatically save comma-separated string as value of taxonomy field
try that:

$terms = explode(',', $string);
foreach ($terms as $key =&gt; $term) {
  $node-&gt;field_taxonomy[LANGUAGE_NONE][$key]['value'] = $term;
}