Adding multiple fields in node_save() Its possible to add a node using the code below, but how do i add multiple fields?

$node = new StdClass();//creating a bare node
$node-&gt;type = 'answer';//giving it type
$node-&gt;status = 1;//give it a published staus
$node-&gt;title = "Step up to the FLava";//gives title
$node-&gt;body = "Body Body body"; //gives body

node_save($node);


Singles custom field, we can use:   

$node-&gt;field_my_custom_field['und'][0]['value'] = 'my value';


But what if I want to add multiple entries for one field?
Second index after 'und' is used for delta of values. You can make it 1 , 2, 3 etc to add multiple values... Something like below...

$node-&gt;field_my_custom_field['und'][0]['value'] = 'my value one';
$node-&gt;field_my_custom_field['und'][1]['value'] = 'my value two';
$node-&gt;field_my_custom_field['und'][2]['value'] = 'my value three';
$node-&gt;field_my_custom_field['und'][3]['value'] = 'my value four';