当前位置:网站首页>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
边栏推荐
- Embedded Engineer Interview frequently asked questions
- Shell script - string
- [ESP nanny level tutorial] crazy completion chapter - Case: ws2812 light control system based on Alibaba cloud, applet and Arduino
- Promise异步编程
- Yidian Yidong helps enterprises to efficiently manage equipment and improve equipment utilization
- Shell脚本-for循环和for int循环
- Shell script -while loop explanation
- 通过 代码实例 理解 浅复制 与 深复制
- 美团2022年机试
- [ESP nanny level tutorial] crazy completion chapter - Case: chemical environment system detection based on Alibaba cloud and Arduino, supporting nail robot alarm
猜你喜欢

nacos简易实现负载均衡

如何做好固定资产管理?易点易动提供智能化方案
![[video game training] real topic of 2013 video game of infrared optical communication device](/img/ef/c2c45c1c6c24aed0a4e93101047372.png)
[video game training] real topic of 2013 video game of infrared optical communication device

3D打印Arduino 四轴飞行器

Mysql 优化

dsPIC30F6014a LCD 方块显示
![[pytorch] softmax function](/img/97/b8ae22e8496a77e665d716cb0e9ee3.png)
[pytorch] softmax function

Principles of Microcomputer - Introduction

Simple load balancing with Nacos

FreeRTOS learning easy notes
随机推荐
How to effectively align team cognition
【ESP 保姆级教程】疯狂毕设篇 —— 案例:基于物联网的GY906红外测温门禁刷卡系统
FAQ | FAQ for building applications for large screen devices
如何做好固定资产管理?易点易动提供智能化方案
【pytorch】nn.CrossEntropyLoss() 与 nn.NLLLoss()
Shell脚本-read命令:读取从键盘输入的数据
Shell script -for loop and for int loop
dsPIC30F6014a LCD 方块显示
Common interview questions for embedded engineers 2-mcu_ STM32
易点易动助力企业设备高效管理,提升设备利用率
【ESP 保姆级教程 预告】疯狂Node.js服务器篇 ——案例:ESP8266 + MQ系列 + NodeJs本地服务 + MySql存储
Understanding and implementation of AVL tree
【pytorch学习】torch.device
Flink interview questions
【ESP 保姆级教程】疯狂毕设篇 —— 案例:基于阿里云和Arduino的化学环境系统检测,支持钉钉机器人告警
[pytorch] softmax function
Shell script - definition, assignment and deletion of variables
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
Personal decoration notes
安装Oracle EE