Unable to obtain array values in Drupal 7 despite obtaining count.

Hi All
This is the code i have for acquiring user chosen values from listbox. The $targetLangs is the array that gives me the count of chosen items from the listbox. But i am unable to use the syntax it needs to at least printout the individual values it contains.
<?php  $targetLangs = isset($form_state['values']['target']) ? $form_state['values']['target'] : key($options_first);   print_r('<pre>'. $targetLangs .'</pre>');     if (count($targetLangs) == 0) {    drupal_get_messages();    drupal_set_message("Please select appropriate Freeway Target Languages.");    drupal_goto($base_root . request_uri());  }            drupal_get_messages();        drupal_set_message("CountArray ->".count($targetLangs));        for($e=0;$e<count($targetLangs);$e+=1)        {        // It does not print out any values!        drupal_set_message("Values we need >!".$targetLangs[$e]);        }        drupal_goto("user");  ?>
This is the outpt I see.
Would like to have your help
Thanks ,
Angela