PHP Classes

string to text

Recommend this page to a friend!

      Top level forums  >  PHP Specialists  >  General  >  string to text  
Subject:string to text
Summary:convert string to text
Messages:2
Author:Manjiri
Date:2010-01-18 12:18:51
Update:2010-01-20 03:28:21
 

  1. string to text   Reply   Report abuse  
Picture of Manjiri Manjiri - 2010-01-18 14:29:44
Hello,
I hve the excelwriter.inc.php which writes data into excel sheet. I have a few columns that are numbers but the entire data is written as string & I get "The number in this cell is formatted as text or preced by an apostrophe" message in the sheet . This is the line which writes data into the sheet:
fwrite($this->fp,"<td class=xl24 width=64 >".$col."</td>");
I hve tried using intval
fwrite($this->fp,"<td class=xl24 width=64 >".intval($col)."</td>");
but it still gives me the same message.

Please help, i m stuck because of this!!

There is 1 reply in this thread, which is not being displayed.
Browsing this forum thread replies is available only to premium subscribers.


Go to the premium subscriptions page to learn how to become a premium subscriber and have full access to this forum.