当前位置:网站首页>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
边栏推荐
- 树结构---二叉树2非递归遍历
- Promise asynchronous programming
- Shell script - definition, assignment and deletion of variables
- 2.3 【kaggle数据集 - dog breed 举例】数据预处理、重写Dataset、DataLoader读取数据
- Record a redis timeout
- 计网01-物理层
- An overview of the design of royalties and service fees of mainstream NFT market platforms
- Phishing identification app
- nacos服务配置和持久化配置
- JS prototype chain
猜你喜欢
树结构---二叉树2非递归遍历
Pain points and solutions of equipment management in large factories
Why is the Ltd independent station a Web3.0 website!
MapReduce编程基础
Simple load balancing with Nacos
NiO zero copy
OSPF - virtual link details (including configuration commands)
【pytorch】softmax函数
Daily practice of C language - day 80: currency change
nacos简易实现负载均衡
随机推荐
Day06 branch structure and cycle (III)
【pytorch】softmax函数
Understand shallow replication and deep replication through code examples
[ESP nanny level tutorial preview] crazy node JS server - Case: esp8266 + DHT11 +nodejs local service + MySQL database
3D打印Arduino 四轴飞行器
js valueOf 与 toString 区别
Mysql8.0 learning record 17 -create table
laravel postman 提交表单出现419错误。2020年7月6日记。
R language observation log (part24) -- initialization settings
Shell script - definition, assignment and deletion of variables
Daily practice of C language - day 80: currency change
Can diffusion models be regarded as an autoencoder?
phpexcel 里 获取某一列的列表 获取某一列的字母
计网01-物理层
Class loading
Closure implementation iterator effect
Tree structure -- binary tree 2 non recursive traversal
[ESP nanny level tutorial] crazy completion chapter - Case: chemical environment system detection based on Alibaba cloud and Arduino, supporting nail robot alarm
Promise asynchronous programming
Latex插入的eps图片模糊解决方法