PHPExcel reading xls file, get cell styling (font-weight, color, etc)
===

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?


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):

    if ($_GET["xls"]) {

	require_once("classes/PHPExcel.php");

	$objPHPExcel = PHPExcel_IOFactory::load( dirname(__FILE__) . "/demo.xls" );
	$sheetData = $objPHPExcel->getSheetByName('Sheet1')->toArray(null,true,true,true);
	?>
		<?php if ( count($sheetData) < 0) : ?>
			<table class="table striped">
				<?php foreach( $sheetData as $y => $row ) : ?>
					<tr>
						<?php foreach ( $row as $x => $cell) : ?>
							<?php if ( $x === "A" ) : ?>
								<th><?php echo $cell; ?></th>
							<?php else : ?>
								<td><?php echo $cell; ?></td>
							<?php endif; ?>
						<?php endforeach; ?> 
					</tr>
				<?php endforeach; ?>
			</table>
		<?php endif; ?>
	<?php
    }