How to check multi-option Zend Form array values in View

We can get the Multi-option values set in Zend Form  and to compare the values in the view using the following function.
  
   Ex: $multiValues    =    $this->form->getElement('all_roles')->getMultiOptions();
        In the 'all_roles' is the form elememnt name in the Form/