how to save checkboxes values in node programmatically
i found the solution
:

  $aaz= array_filter($form_state['values']['wrapperrr']['id_offre']);
 foreach($aaz as $of)
   {       

  //  $node-&gt;title = $form_state['values']['wrapperrr']['id_offre'][0]['value'];     
   $node-&gt;field_offre[LANGUAGE_NONE][]['target_id'] = $of;



   }