如何将超过256个字符写入Excel单元格? [英] How to write more than 256 characters to an Excel cell?

查看:467
本文介绍了如何将超过256个字符写入Excel单元格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


写入Excel文件时遇到问题。

我想做的是:

i想在Excel字段的一个单元格中写入2个变量的内容。


写一个变量的内容,我用
$ worksheet- > write_string($ row,$ col,$ value1,$ format);

这个工作正常。


但要编写2个变量,如果我使用下面的代码,那么第二个变量将被覆盖在第一个变量上。
$ worksheet-> write_string($ row,$ col,$ value1,$ format);

$ worksheet-> write_string($ row,$ col,$ value2,$ format);



有没有办法用另一个变量附加一个单元格?所以我们可以编写第一个变量,n然后追加第二个变量。


如果some1可以帮助我的话会很好。


感谢任何帮助。


谢谢

解决方案

工作表 - > write_string(


行,

COL,

Hi guys,

I had a problem while writing into an Excel file.
What i want to do is:
i want to write the contents of 2 variables in one cell of the Excel field.

to write the contents of one variable, i use
$worksheet->write_string($row, $col, $value1, $format);
this works fine.

but to write 2 variables, if i use the following code then the 2nd variable is overwritten on the first one.
$worksheet->write_string($row, $col, $value1, $format);
$worksheet->write_string($row, $col, $value2, $format);


is there any way of appending a cell by another variable? So we can write the first variable, n then append the second variable.

It would be nice if some1 could help me out.

Any Help is appreciated.

Thank You

解决方案

worksheet->write_string(


row,


col,


这篇关于如何将超过256个字符写入Excel单元格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆