title: Delete row phpexcel
body: <p>I want to load my file.xls and check if my elements contains the character <code>^</code>; then, I want to remove it.</p>
  
  <p>Here my code so far:</p>
  
  <pre><code>$objPHPExcel = PHPExcel_IOFactory::load("trainbayes.xlsx");
  foreach ($objPHPExcel-&gt;getWorksheetIterator() as $worksheet){
  $column = 'C';
  $lastRow = $worksheet-&gt;getHighestRow();
    for ($row = 2; $row &lt;= $lastRow; $row++) {    
        $cell = $worksheet-&gt;getCell($column.$row);
        if (preg_match("/([\^])/",$cell)){
            $objPHPExcel-&gt;getActiveSheet()-&gt;removeRow($row,$row);
        }
     }
  } 
  </code></pre>
  
  <p>But it didn't work. Can you help me? Thank you :)</p>