title: Display multiple values from field Drupal 7
body: <p>Hello I am using the following code to display a custom field in a user profile.  However I can only get it to display one value at a time.  How can I extract multiple values from the field?  The field is set up as an unlimited integer field.  Each value is on it own row.</p>
  
  <pre><code>&lt;?php
      global $user;
      $user_data = user_load($user-&gt;uid);
      $test = $user_data-&gt;field_companies['und']['0']['value'];
      echo $test;
  ?&gt;
  </code></pre>