Get Field Collection Array From Field Collection ID
this is how you can get values from field collection

if(isset($node-&gt;field_field_collection['und'])) {
  foreach($node-&gt;field_field_collection['und'] as $field){
    $colection_node = entity_load('field_collection_item', array($field['value']));
    $name_from_collection = $colection_node[$field['value']]-&gt;field_field_name['und'][0]['value'];
  }
}


now you can understand how to get value from field collection try to fix this in your code

THANKS