title: xlsx to text with php
body: <p>I have following function to convert xlsx to text..but it does not give space for new cell.. means for different cell it directly appends to previous word..</p>
  
  <pre><code>function xlsx_to_text($input_file){
      $xml_filename = "xl/sharedStrings.xml"; //content file name
      $zip_handle = new ZipArchive;
      $output_text = "";
      if(true === $zip_handle-&gt;open($input_file)){ 
          if(($xml_index = $zip_handle-&gt;locateName($xml_filename)) !== false){ 
              $xml_datas = $zip_handle-&gt;getFromIndex($xml_index);
             $xml_handle = new DOMDocument();
             $xml_handle-&gt;loadXML($xml_datas, LIBXML_NOENT | LIBXML_XINCLUDE | LIBXML_NOERROR | LIBXML_NOWARNING);
              $output_text = strip_tags($xml_handle-&gt;saveXML());
          }else{ 
              $output_text .="";
          }
          $zip_handle-&gt;close();
      }else{
      $output_text .="";
      }
      return $output_text;
  }
  </code></pre>
  
  <p>I have output like.. <code>Ihaveanapple</code>.. but it should be like <code>I have an apple</code></p>
  
  <p>please help me to get out of this.. </p>