当前位置:网站首页>Get the list of a column in phpexcel get the letters of a column
Get the list of a column in phpexcel get the letters of a column
2022-07-01 09:19:00 【What about your long love~】
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);
}
test
get_zimu('1') #A
get_zimu('27') #AB
边栏推荐
- Databinding source code analysis
- js原型陷阱
- An overview of the design of royalties and service fees of mainstream NFT market platforms
- JS原型链
- Shell script echo command escape character
- In the middle of the year, where should fixed asset management go?
- [pytorch] 2.4 convolution function nn conv2d
- Daily practice of C language - day 80: currency change
- Key points of NFT supervision and overseas policies
- 【ESP 保姆级教程】疯狂毕设篇 —— 案例:基于阿里云、小程序、Arduino的WS2812灯控系统
猜你喜欢
Understanding and implementation of AVL tree
PR training notes
Simple load balancing with Nacos
An overview of the design of royalties and service fees of mainstream NFT market platforms
Ranking list of domestic databases in February, 2022: oceanbase regained the "three consecutive increases", and gaussdb is expected to achieve the largest increase this month
Football and basketball game score live broadcast platform source code /app development and construction project
Reproduced Xray - cve-2017-7921 (unauthorized access by Hikvision)
【pytorch】nn.CrossEntropyLoss() 与 nn.NLLLoss()
How to manage fixed assets efficiently in one stop?
[pytorch] 2.4 convolution function nn conv2d
随机推荐
【ESP 保姆级教程 预告】疯狂Node.js服务器篇 ——案例:ESP8266 + MQ系列 + NodeJs本地服务 + MySql存储
Databinding source code analysis
[interview brush 101] linked list
Naoqi robot summary 28
Understand shallow replication and deep replication through code examples
MySQL optimization
Redis source code learning (29), compressed list learning, ziplist C (II)
2.2 【pytorch】torchvision. transforms
pcl_ Viewer command
NoSQL数据库的安装和使用
Shell script -read command: read data entered from the keyboard
SDN_简单总结
Flink面试题
序列化、监听、自定义注解
Shell script -if else statement
laravel postman 提交表单出现419错误。2020年7月6日记。
ES6 decoupling top-level objects from windows
【电赛训练】红外光通信装置 2013年电赛真题
【ESP 保姆级教程】疯狂毕设篇 —— 案例:基于阿里云和Arduino的化学环境系统检测,支持钉钉机器人告警
Simple load balancing with Nacos