Get values from a multi value field? I have a field that can accept unlimited values. I want to print those values in my template. 

The array that I can see with the devel module looks like this....

Array
(
    [und] =&gt; Array
        (
            [0] =&gt; Array
                (
                    [value] =&gt; Dustin
                    [format] =&gt; 
                    [safe_value] =&gt; Dustin
                )

            [1] =&gt; Array
                (
                    [value] =&gt; Jen
                    [format] =&gt; 
                    [safe_value] =&gt; Jen
                )

            [2] =&gt; Array
                (
                    [value] =&gt; Mike
                    [format] =&gt; 
                    [safe_value] =&gt; Mike
                )

        )

)


What I'd like to do is have these values printed to a comma separated list like: Dustin, Jen, Mike

I've been using this code to print single value fields in my template but that of course isn't going to work well with a multi value field..

&lt;?php echo $entityform-&gt;field_team_name['und'][0]['value']; ?&gt;
field_get_items() will do the trick:

if ( ($items = field_get_items('entityform', $entityform, 'field_team_name')) ) {
  $values = array_map($items, function($x) { return $x['safe_value']; });
  $comma_separated = implode(', ', $values);
}