Hello Ankita Solanki,
 I have a source for you there is a little bit change if you can do well then you will get an answer. 
 
As I suggested, you can store the $_FILES in a temp variable before starting the loop, like $temp = $_FILES, and loop through $temp, then inside the loop you initialize your $_FILES variable using the temp variable.
 
  1. $this->load->library('upload');   
  2. $error = "";  
  3. $file  = "";  
  4. $this->total_count_of_files = count($_FILES['user_certificates']['name']);  
  5. print_r($_FILES['user_certificates']['name']);  
  6.   
  7. for($i=0; $i<$this->total_count_of_files; $i++)  
  8. {  
  9.     $_FILES['user_certificates']['name'] = $_FILES['user_certificates']['name'][$i];  
  10.     $_FILES['user_certificates']['type'] = $_FILES['user_certificates']['type'][$i];  
  11.     $_FILES['user_certificates']['tmp_name'] = $_FILES['user_certificates']['tmp_name'][$i];  
  12.     $_FILES['user_certificates']['error'] = $_FILES['user_certificates']['error'][$i];  
  13.     $_FILES['user_certificates']['size'] = $_FILES['user_certificates']['size'][$i];  
  14.   
  15.     $config['encrypt_name'] = TRUE;  
  16.     $config['file_name'] = $_FILES['user_certificates']['name'];  
  17.     $config['upload_path'] = './certificate_files/';  
  18.     $config['allowed_types'] = 'txt|pdf|doc|docx';  
  19.     $config['max_size'] = 0;  
  20.   
  21.     $this->upload->initialize($config);  
  22.   
  23.     if (!$this->upload->do_upload())  
  24.     {  
  25.         $status = 'error';  
  26.         $msg = $this->upload->display_errors();  
  27.     }  
  28.     else  
  29.     {  
  30.         $data = $this->upload->data();  
  31.         $file = $data['raw_name'] . $data['file_ext'];  
  32.     }  
  33.     if($file)  
  34.     {  
  35.         $status = "success";  
  36.         $msg = "Image successfully uploaded";  
  37.     }  
  38.     else  
  39.     {  
  40.         $status = "error";  
  41.         $msg = "Something went wrong when saving the image, please try again.";  
  42.     }  
  43. }     
  44. echo json_encode(array('status' => $status, 'msg' => $msg));  
  45. exit();