This small drupal 7 tip will help you get out values from entity objects, like nodes, users, taxonomy, ...
You probably seen this data structure when loading nodes:
<?php$entity ->fieldname[language][delta] = [item];?>