how to use entity_load() result?
Your function will give an array of entity objects, indexed by their entity_id's. So:

foreach ($archive_items as $entity_id =&gt; $archive_entity) {
  /* Process each entity */
}


will allow you to iterate through the entities and to do what you need to each. Beyond that, we will have to know what result you are trying to achieve.