Phpexcel coding skills: PHPcode $ objActSheet-& gt; setCellValue ('A2 ', 26); & nbsp; but my cell is a variable value, that is, a1, b2, c4, unknown, the two variable control areas, $ r represents rows, such as a, B, c, d ..... $ c: phpexcel writing skills
PHP code
$objActSheet->setCellValue('A2', 26);
But my cell is a variable value, that is, a1, b2, c4, unknown, the control areas of the two variables,
$ R indicates a, B, c, d .....
$ C indicates a column, such as 1, 2, 3, 4,
Values to be put when they are combined.
PHP code
$objActSheet->setCellValue($r.$c, $r['value']);
An error is reported. when I write it like this, there will be no error.
PHP code
$objActSheet->setCellValue('a4', $r['value']);
It seems that the variable has not been processed properly. how can this problem be solved ??
------ Solution --------------------
Control column. Column is the name of the field to be exported.
------ Solution --------------------
What are the errors?