How do I print out values from a select field with multiple values Currently I have a select field with multiple string values in a custom node. I'm trying to print them out without any html markup.

Currently I am declaring my variable like this:

$categories = $content['field_category']; 


And I'm trying to print it like this:

foreach ($categories['und'] as $item) {
    echo $item['value'];
}


But nothing gets printed out. What am I doing wrong?
I ended up just making a custom loop like this and it works fine (Also added a custom if statement to change html output based on single or multiple categories in the field.

&lt;?php 
    $categoryCount = count($field_category);
    if ($categoryCount != 1):
?&gt;
    &lt;p&gt;&lt;strong&gt;Categories:&lt;/strong&gt;
&lt;?php else: ?&gt;
    &lt;p&gt;&lt;strong&gt;Category:&lt;/strong&gt;
&lt;?php
    endif;
    $i = 0;
    while ($i &lt; $categoryCount) {
        if ($i != 0) {
            $html .= ', ';
        }
        $html .= $field_category[$i]['value'];
        $i++;
    }
    echo $html;
?&gt;