title: All cells like strings PHP Excel
body: <p>I'm trying to read some data from excel file. Everything is good if i have ex.50.44% in my excel cell PHP excel format it like float 0.0531 i dont want to format any numbers and i want all cell to be casted as string. How can i accomplish this before making the data toArray();</p>
  
  <p>Here my sample code</p>
  
  <pre><code>try {
      $objPHPExcel = PHPExcel_IOFactory::load($upload_url);
  } catch(Exception $e) {
      die('Error loading file "'.pathinfo($upload_url,PATHINFO_BASENAME).'": '.$e-&gt;getMessage());
  }
  
   $objPHPExcel-&gt;getDefaultStyle()
  -&gt;getNumberFormat()
  -&gt;setFormatCode(PHPExcel_Style_NumberFormat::FORMAT_TEXT);
  
  
  $sheetData = $objPHPExcel-&gt;getActiveSheet()-&gt;toArray(null,true,true,true);
  var_dump($sheetData);
  exit;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Tq2ue.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Tq2ue.png" alt="enter image description here"></a>
  Any help will be appreacited.</p>