当前位置:网站首页>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;
}
边栏推荐
- Node+js build time server
- @Implementation principle of Autowired annotation
- JS typewriter animation JS special effect plug-in autotyperjs
- Does the server operation and maintenance need to be online 24 hours? Do you need to work overtime on weekends?
- Mogdb 3.0 how to add a standby database in the environment of one active and one standby
- CentOS 8.2 MySQL installation (xshell6)
- TCGA simple download tool V16 installation error
- [5g NR] UE registration rejection reason
- C # introductory series (30) -- exception handling
- Use of lambdaquerywrapper, lambdaupdatewrapper, lambdaquerychainwrapper
猜你喜欢

Source code of pet adoption management system implemented by ssm+jsp+mysql

FreeMaker模板引擎

serialization and deserialization

Redis fragment cluster

25位撤销博士学位

Raspberry connects EC20 for PPP dialing

一次简单的SQL注入靶场练习

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

Use of lambdaquerywrapper, lambdaupdatewrapper, lambdaquerychainwrapper

node+js搭建时间服务器
随机推荐
BigDecimel转人民币大写
聊下自己转型测试开发的历程
提高代码可续性的小技巧,以connectTo方法为例。
Blue and white porcelain used by Charles
JS typewriter animation JS special effect plug-in autotyperjs
Chapter 3 business function development (realize the real-time response of the select all button)
016 fundamentals of machine learning mathematics: Introduction
@Autowired注解的实现原理
Foundation 31: Selenium positioning dynamic ID element
Svg creative underline style JS special effect
@The difference and use of value and configurationproperties
第3章业务功能开发(查询线索)
@Use of data annotation (instead of get and set methods in entity classes)
Raspberry Pie 3 connected to WiFi
efcore在Saas系统下多租户零脚本分表分库读写分离解决方案
Initial knowledge of WebService (generate jar packages and call methods in remote services)
孙子兵法随感
TCGA simple download tool V16 installation error
本周大新闻|FCC曝光Pico 4 VR一体机,雷朋母公司建立智能眼镜实验室
Codeforces Round #809 Editorial(A,B,C)