title: HTML XML to Excel via PHP - Convert to Number
body: <p>I am trying to convert html to excel without using any library.</p>
  
  <p>I just encountered one problem.... I have the classes ready etc etc (basically I exported an excel to html) and is now doing it vice versa [just changing the content].</p>
  
  <p>I am formatting my currency/totals as numbers with 2 decimals. (when you right click them it says so at least) but in the excel it still shows as a Text and in order to work with them it requires me to press Convert to Number</p>
  
  <p>At the moment I have this in my loop. Do you think its enough ?</p>
  
  <pre><code>&lt;td class=xl112 align=right style='border-top:none;border-left:none'&gt;2,033.00
  &lt;/td&gt;
  </code></pre>
  
  <p>and in the css I have</p>
  
  <pre><code>.xl112
      {mso-style-parent:style0;
      mso-number-format:"\#\,\#\#0\.00_ \;\[Red\]\\-\#\,\#\#0\.00\\ ";
      vertical-align:middle;
      border-top:.5pt solid windowtext;
      border-right:1.0pt solid windowtext;
      border-bottom:.5pt solid windowtext;
      border-left:1.0pt solid windowtext;
      background:#FFFF99;
      mso-pattern:auto none;}
  </code></pre>