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] => Array
(
[0] => Array
(
[value] => Dustin
[format] =>
[safe_value] => Dustin
)
[1] => Array
(
[value] => Jen
[format] =>
[safe_value] => Jen
)
[2] => Array
(
[value] => Mike
[format] =>
[safe_value] => 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..
<?php echo $entityform->field_team_name['und'][0]['value']; ?>