当前位置:网站首页>PHP reports an error: classes\phpexcel\cell php Line(594) Invalid cell coordinate ESIGN1
PHP reports an error: classes\phpexcel\cell php Line(594) Invalid cell coordinate ESIGN1
2022-07-25 08:34:00 【Summer is already slightly cool】
One 、 explain
Invalid cell coordinate ESIGN1:
Cell coordinates ESIGN1 Invalid
At first, I was a little confused when I saw this problem , Only step by step
echo 1;die();Print , Finally found the problem , Four or five cellsE, It was written asESIGN1. Maybe I copied a word beforeSIGN1stay E Back , Embarrassed ~hold
ESIGN1Change toEThat's itCode screenshot

Two 、 Content
1、 Before the change
/** * @param int $count The number of columns * @return array One dimensional array of column names */
public static function getCol($count)
{
$columnFlag = [
0 => 'Z', 1 => 'A', 2 => 'B', 3 => 'C', 4 => 'D', 5 => 'ESIGN1', 6 => 'F', 7 => 'G', 8 => 'H',
9 => 'I', 10 => 'J', 11 => 'K', 12 => 'L', 13 => 'M', 14 => 'N', 15 => 'O', 16 => 'P', 17 => 'Q',
18 => 'R', 19 => 'S', 20 => 'T', 21 => 'U', 22 => 'V', 23 => 'W', 24 => 'X', 25 => 'Y', 26 => 'Z'
];
if ($count == 0) {
return [];
}
$column = [];
for ($index = 1; $index <= $count; $index++) {
if ($index <= 26) {
$column[] = $columnFlag[$index];
} else {
$value = floor($index / 26);
if ($index % 26 == 0) {
$value -= 1;
}
$column[] = $columnFlag[$value] . $columnFlag[floor($index % 26)];
}
}
return $column;
}
2、 After modification
// test
public function test()
{
var_export(self::getCol(99));
}
/** * @param int $count The number of columns * @return array One dimensional array of column names */
public static function getCol($count)
{
$columnFlag = [
0 => 'Z', 1 => 'A', 2 => 'B', 3 => 'C', 4 => 'D', 5 => 'E', 6 => 'F', 7 => 'G', 8 => 'H',
9 => 'I', 10 => 'J', 11 => 'K', 12 => 'L', 13 => 'M', 14 => 'N', 15 => 'O', 16 => 'P', 17 => 'Q',
18 => 'R', 19 => 'S', 20 => 'T', 21 => 'U', 22 => 'V', 23 => 'W', 24 => 'X', 25 => 'Y', 26 => 'Z'
];
if ($count == 0) {
return [];
}
$column = [];
for ($index = 1; $index <= $count; $index++) {
if ($index <= 26) {
$column[] = $columnFlag[$index];
} else {
$value = floor($index / 26);
if ($index % 26 == 0) {
$value -= 1;
}
$column[] = $columnFlag[$value] . $columnFlag[floor($index % 26)];
}
}
return $column;
}
边栏推荐
- Redis4.0.14 sentinel automatic failover failed
- 【黑马程序员】Redis学习笔记002:持久化:RDB 和 AOF
- Raspberry pie uses the command line to configure WiFi connections
- IP command usage details
- Raspberry Pie 3 connected to WiFi
- Foundation 32: page element positioning method XPath --- axis positioning method
- FreeMaker模板引擎
- Online bookstore system based on jsp+servlet+mysql
- NVIDIA可编程推理加速器TensorRT学习笔记(二)——实操
- nuscenes数据集3D MOT demo,端到端的目标检测和跟踪,检测跟踪联合框架
猜你喜欢

Rk3399 development board i2c4 attaching EEPROM instance

Basis 33: XPath acquisition methods of page elements under various browsers

Redis learning
![RTOS series (13): assembly LDR instruction, LDR pseudo instruction, [rn] register indirect reference detailed analysis](/img/87/d116e729c771fcf3ce95958a45d85f.png)
RTOS series (13): assembly LDR instruction, LDR pseudo instruction, [rn] register indirect reference detailed analysis

Initial knowledge of WebService (generate jar packages and call methods in remote services)

Foundation 31: Selenium positioning dynamic ID element
![[dark horse programmer] redis learning notes 001: introduction to redis + five basic data types](/img/f7/9f43cd964a671f3b53337999332280.png)
[dark horse programmer] redis learning notes 001: introduction to redis + five basic data types

This week's big news | FCC exposed Pico 4 VR all-in-one machine, and leipeng's parent company established a smart glasses laboratory

MVC mode three-tier architecture

Advanced C language (XIII) - Example Analysis of dynamic memory management
随机推荐
CentOS 8.2 MySQL installation (xshell6)
提高代码可续性的小技巧,以connectTo方法为例。
Machine learning theory and case analysis (Part1) -- Fundamentals of machine learning
Mogdb 3.0 how to add a standby database in the environment of one active and one standby
Eureka forced offline service
Message Oriented Middleware
One of C language multithreading programming
efcore在Saas系统下多租户零脚本分表分库读写分离解决方案
@Use of data annotation (instead of get and set methods in entity classes)
Raspberrypico analytic PWM
Ensembles in RNA counts data in TCGA_ ID to gene_ Method of ID
Hotel room management system based on jsp+servlet+mysql
node+js搭建时间服务器
CM4 development cross compilation tool chain production
RTOS系列(13):汇编LDR指令、LDR伪指令、[Rn]寄存器间接引用 详细解析
NVIDIA可编程推理加速器TensorRT学习笔记(二)——实操
【keras bug】Tensor is unhashable if Tensor equality is enabled. Instead, use tensor.experimental_ ref(
Source code of short video live broadcast system
Force buckle - 1046. Weight of the last stone
Huawei device remote login (Telnet, SSH) configuration