Reading xlsx file in PHP
<p>I'm following <a href="http://matthom.com/archive/2010/04/14/read-microsoft-office-2007-files-with-php" rel="nofollow">this tutorial</a> to read the <code>xlsx</code> file format.  I'm reading xlsx file. Working fine. But it display all the file content in one line. How to add space between them? Thanks
Here is my code.</p>

<pre><code>    $file_upload = 'book.zip';
$zip = new ZipArchive;
// the string variable that will hold the file content
$file_content = " ";
// the uploaded file
//$file_upload = $file -&gt; upload["tmp_name"];
if ($zip -&gt; open($file_upload) === true) {
  // loop through all slide#.xml files
  if ( ($index = $zip -&gt; locateName("xl/sharedStrings.xml")) !== false ) {
                    $data = $zip -&gt; getFromIndex($index);

                    $xml = DOMDocument::loadXML($data, LIBXML_NOENT | LIBXML_XINCLUDE | LIBXML_NOERROR | LIBXML_NOWARNING);

                    $file_content = strip_tags($xml -&gt; saveXML());
              }
echo $file_content;
}
</code></pre>
