hello, every one.
I am a new comer here.
I have a question to ask. I've found some articles, but i could not
find the answer.
my php code:
<?php
$fp = fopen("filename.xls", "w");
print substr_count($contents[0],"\n");
print $contents[0];
echo "<br>";
$contents[0]= str_replace ("\n", " ",$contents[0]);
print $contents[0];
echo "<br>";
print substr_count($contents[0],"\n");
print $contents[0];
echo "<br>";
fputs($fp,$contents[0]);
fputs($fp, "Mon");
//fputs($fp,$contents[3]);
fclose($fp);
?>
$contents[0] is some string.
what i want to ask is that after I removed the "\n" of $contents[0],
but.....
when I write $contents[0] to excel file,
$contents[0] will write to position: 9B.
I think it should write to 1A,
what is wrong with $contents[0] ? ? ?
could anyone please help me?
thank you first.