title: PHPExcel reading xls file, get cell styling (font-weight, color, etc)
body: <p>I am trying to read an excel file and render it as a html table. I would like to get the style that has been applied in excel to a cell and render it in html as well. For example, some cells may have text in BOLD, how do I get that information and use it in the most efficient way?</p>
  
  <p>This is the code I have so far (I am trying out PHPExcel the first time so I am eager to hear any comments or improvements I can make to this):</p>
  
  <pre><code>if ($_GET["xls"]) {
  
  require_once("classes/PHPExcel.php");
  
  $objPHPExcel = PHPExcel_IOFactory::load( dirname(__FILE__) . "/demo.xls" );
  $sheetData = $objPHPExcel-&gt;getSheetByName('Sheet1')-&gt;toArray(null,true,true,true);
  ?&gt;
      &lt;?php if ( count($sheetData) &lt; 0) : ?&gt;
          &lt;table class="table striped"&gt;
              &lt;?php foreach( $sheetData as $y =&gt; $row ) : ?&gt;
                  &lt;tr&gt;
                      &lt;?php foreach ( $row as $x =&gt; $cell) : ?&gt;
                          &lt;?php if ( $x === "A" ) : ?&gt;
                              &lt;th&gt;&lt;?php echo $cell; ?&gt;&lt;/th&gt;
                          &lt;?php else : ?&gt;
                              &lt;td&gt;&lt;?php echo $cell; ?&gt;&lt;/td&gt;
                          &lt;?php endif; ?&gt;
                      &lt;?php endforeach; ?&gt; 
                  &lt;/tr&gt;
              &lt;?php endforeach; ?&gt;
          &lt;/table&gt;
      &lt;?php endif; ?&gt;
  &lt;?php
  }
  </code></pre>