title: Combined two arrays and the result returned has an empty key and value
body: <p>I have an excel sheet which is read and converted to an array.
  Here is the code : </p>
  
  <pre><code>    $filename = $_FILES['importProjects']['tmp_name'];
      $objPHPExcel = PHPExcel_IOFactory::load($filename);
  
          $i = 0;
          $all_sheet = $objPHPExcel-&gt;getSheetCount(); //total number of sheets
          $arrayInsertProject =   array();
          $arrayUpdateProject =   array();
          while ($i &lt; $all_sheet){
              $objPHPExcel-&gt;setActiveSheetIndex($i); 
              $allDataInSheet = $objPHPExcel-&gt;getActiveSheet()-&gt;toArray(null,true,true,true);
              $arrayCount = count($allDataInSheet);  // Here get total count of rows from the sheet
              $column = 'A';
              $project_cnt=1;
              $dataIns = array();
              for ($row = 1; $row &lt;= $arrayCount; $row++) { //loop through rows
                  if($row ==1){
                      $highestColumn = $objPHPExcel-&gt;getActiveSheet()-&gt;getHighestColumn();
                      $rowDataHeader = $objPHPExcel-&gt;getActiveSheet()-&gt;rangeToArray('A' . $row . ':' . $highestColumn . $row,
                      NULL,
                      TRUE,
                      FALSE);
                      $rowDataHeader  =   array_reduce($rowDataHeader, 'array_merge', array());       
                  }else {
                      $highestColumn = $objPHPExcel-&gt;getActiveSheet()-&gt;getHighestColumn();
  
                      $rowData = $objPHPExcel-&gt;getActiveSheet()-&gt;rangeToArray('A' . $row . ':' . $highestColumn . $row,
                      NULL,
                      TRUE,
                      FALSE);
                     $dataIns =    array_combine($rowDataHeader, $rowData);
                  }
              }
          }
  </code></pre>
  
  <p>When I print this array $dataIns, I get something like this : </p>
  
  <pre><code>Array
  (
       [intProjectSlNo] =&gt; 1069
       [chvProjectNameEng] =&gt; New
       [slug] =&gt; this-is -test
       [nchvSecType] =&gt; 1754349
       [] =&gt; 
  )
  </code></pre>
  
  <p>How to remove the empty key => value pair ?</p>