当前位置:网站首页>phpexcel 里 获取某一列的列表 获取某一列的字母
phpexcel 里 获取某一列的列表 获取某一列的字母
2022-07-01 09:08:00 【你的长情呢~】
function get_zimu($index, $start = 65)
{
$str = '';
if (floor($index / 26) > 0){
$str .= get_zimu(floor($index / 26) - 1);
}
return $str . chr($index % 26 + $start);
}
测试
get_zimu('1') #A
get_zimu('27') #AB
边栏推荐
- Principles of Microcomputer - Introduction
- An overview of the design of royalties and service fees of mainstream NFT market platforms
- Shell脚本-for循环和for int循环
- 【pytorch】transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))
- 【ESP 保姆级教程】疯狂毕设篇 —— 案例:基于阿里云和Arduino的化学环境系统检测,支持钉钉机器人告警
- 2.2 【pytorch】torchvision. transforms
- 【ESP 保姆级教程】疯狂毕设篇 —— 案例:基于阿里云、小程序、Arduino的WS2812灯控系统
- MapReduce编程基础
- [ESP nanny level tutorial preview] crazy node JS server - Case: esp8266 + MQ Series + nodejs local service + MySQL storage
- 通过 代码实例 理解 浅复制 与 深复制
猜你喜欢
集团公司固定资产管理的痛点和解决方案
Preparing for the Blue Bridge Cup -- bit operation
jeecg 重启报40001
How to launch circle of friends marketing and wechat group activities
Jeecg restart alarm 40001
[pytorch] softmax function
小鸟识别APP
How to manage fixed assets efficiently in one stop?
Phishing identification app
【pytorch】nn. Crossentropyloss() and nn NLLLoss()
随机推荐
如何高效拉齐团队认知
Jeecg restart alarm 40001
Reproduced Xray - cve-2017-7921 (unauthorized access by Hikvision)
Pain points and solutions of equipment management in large factories
Shell脚本-位置参数(命令行参数)
JCL and slf4j
R language observation log (part24) -- initialization settings
集团公司固定资产管理的痛点和解决方案
队列的实现和应用
Log4j 日志框架
猿人学第20题(题目会不定时更新)
Understanding and implementation of AVL tree
JCL 和 SLF4J
[pytorch] 2.4 convolution function nn conv2d
2.4 activation function
Input标签的type设置为number,去掉上下箭头
In the middle of the year, where should fixed asset management go?
Flink interview questions
Databinding source code analysis
Class loading