How to set programmatically multiple arguments for views contextual filters How to set programmatically multiple arguments for views contextual filters?

I can do it with one argument, it works great, but not with multiple arguments.

I want to select all nodes created by a list of people, but views only takes first in array into consideration:

$array = array(3250,32);
$view = views_get_view('myview');
$view-&gt;set_display("myblock");
$view-&gt;set_arguments($array);
$view-&gt;pre_execute();
$view-&gt;execute();
$content = $view-&gt;render(); 


Am I doing something wrong?
First you should set this option:
View → Advanced → Your Contextual Filter → More → Allow Multiple Values. 
Then when passing array should be with '+', so, your example:

$array = array('3250+32');
$view = views_get_view('myview');
$view-&gt;set_display("myblock");
$view-&gt;set_arguments($array);
$view-&gt;pre_execute();
$view-&gt;execute();
$content = $view-&gt;render();