PHP报错:Classes\\PHPExcel\\Cell.php Line(594) Invalid cell coordinate ESIGN1
- 一、说明
- 二、内容
- 1、修改前
- 2、修改后
一、说明
Invalid cell coordinate ESIGN1:
单元格坐标 ESIGN1 无效
刚开始看到这个问题有点懵,只能一步步
echo 1;die();
打印,最后找到问题了,是四五个单元格E
,被写成了ESIGN1
。可能是之前复制了个单词SIGN1
在E后面,尴尬了~把
ESIGN1
改成E
就行了代码截图
二、内容
1、修改前
/*** @param int $count 列的数量* @return array 列名一维数组*/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、修改后
//测试public function test(){var_export(self::getCol(99));}/*** @param int $count 列的数量* @return array 列名一维数组*/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;}
PHP报错:Classes\\PHPExcel\\Cell.php Line(594) Invalid cell coordinate ESIGN1相关推荐
- 树莓派(Raspberry Pi 3) centos7使用yum命令报错File /usr/bin/yum, line 30 except KeyboardInterrupt, e:...
使用yum命令报错 File "/usr/bin/yum", line 30 except KeyboardInterrupt, e: ^ SyntaxError: invalid ...
- vmware安装minimal centos报错/etc/rc5.d/s99local : line
2019独角兽企业重金招聘Python工程师标准>>> 有人用vmware安装minimal centos报错/etc/rc5.d/s99local : line:25 : ejec ...
- Intellig idea导入项目第一次运行报错- Error running ‘Application‘: Command line is too long—— 解决方法
Intellig idea导入项目第一次运行报错 Error running 'Application': Command line is too long. Shorten command line ...
- Pycharm 转化ui文件为py文件:报错Error in input file: not well-formed (invalid token): line 1, column 1
利用PyUIC转化 .ui文件为 .py文件时,报错 Error in input file: not well-formed (invalid token): line 1, column 1 我出 ...
- blast2go centos mysql 5.7++ 安装报错ERROR 1819 (HY000) at line 4
1)解决导入数据mysql -uroot -p passwd <b2gdb.sql 报错ERROR 1819 (HY000) at line 4: Your password does not ...
- pycharm使用ssh连接服务器(ubuntu)跑代码报错:“sudo+ssh: ……bash: line 0: cd: xxx/code: No such file or directory”
pycharm使用ssh连接服务器(ubuntu)跑代码报错:"sudo+ssh: --bash: line 0: cd: xxx/code: No such file or directo ...
- 宝塔linux版apache安装了启动不,解决Linux宝塔apache启动失败:报错AH00526: Syntax error on line...
Linux宝塔apache启动失败:报错 AH00526: Syntax error on line 解决方案错误信息:AH00526: Syntax error on line 54 of /www ...
- Python报错File “「string」“, line 1, in 「module」 NameError: name ‘q‘ is not defined
Python报错File "", line 1, in NameError: name 'q' is not defined 笔者运行环境:Python 2.7.17 print ...
- C编译报错: implicit declaration of function xxx is invalid in C99 [-Wimplicit-function-declaration]
C编译报错: implicit declaration of function xxx is invalid in C99 [-Wimplicit-function-declaration] 代码文件 ...
最新文章
- SAP CDS view查询的fixed limit
- html5获取gps坐标,html5获取手机GPS信息的示例代码
- django-pure-pagination 分页插件
- java Socket(TCP)编程小项目
- [大数据]Hadoop+Storm+Spark全套入门及实战视频教程
- people are able to buy the same products anywhere in the world
- 适用于Webstorm的25个最佳Javascript插件
- matlab仿真实验报告,Matlab SIMULINK仿真实验报告.doc
- 青岛——生命转折的地方
- 微信小程序+jsp+Mysql 电影详情的微信小程序 源代码+设计文档+说明文档
- ArcGIS图像配准技巧:配准获取中国气候区分布数据(附练习数据下载)
- mit6.828实验环境配置步骤
- COM, COM+ 和 .NET 的区别
- openSUSE----openSUSE常用的软件包管理命令
- 美国员工心目中的最佳50强公司:软件巨头Adobe位居榜首
- Python 生成随机手机号码
- 与合作伙伴共舞,以技术推动数字化转型
- 湖北武汉机械员证书机械员现场管理制度及职责建筑七大员培训
- 智猪博弈论——大猪的抉择
- MATLAB好玩的代码以及基础学习网站