How can I save multiple images to one image field programtically?
I changed the following code:

 $content-&gt;images = array(
        'und' =&gt; array(
            $i =&gt; array(
                'fid' =&gt; $file-&gt;fid,
            ),
        ),
    );


to

$content-&gt;images['und'][$i] = array(
  'fid' =&gt; $file-&gt;fid,
);


And it worked