How can I loop through a multivalue field's values? I have two authors for the same blog, so I want to display both authors details on a page. Below code will display only one because $node-&gt;field_author[LANGUAGE_NONE][0]['target_id'] contains 0. So next author value will be like this $node-&gt;field_author[LANGUAGE_NONE][1]['target_id'] So how can I use foreach loop here to display both author details? 

if (isset($node-&gt;field_author[LANGUAGE_NONE][0]['target_id']) &amp;&amp; is_numeric($node-&gt;field_author[LANGUAGE_NONE][0]['target_id'])) { 
  $nid = trim($node-&gt;field_author[LANGUAGE_NONE][0]['target_id']);
  $nodeauthor = node_load($nid); //$node-&gt;type = 'poll';
  if ($nodeauthor) {
    $nodeView = node_view($nodeauthor, 'teaser'); 
    print drupal_render($nodeView);
  }
}
The solution is:

  foreach($node-&gt;field_author[LANGUAGE_NONE] as $key =&gt; $value){
    $nid = $value['target_id'];
    //$key is the index 0, 1 ....
  }