复制代码 代码如下:
public function loop(){
$loop = 0;
$charnum = 65;
for(; $loop < 150; $loop++){
$quotient = intval($loop / 26);
$remainder = $loop % 26;
$f = $quotient>0? chr($charnum+$quotient-1) : '';
$s = $remainder>=0? chr($charnum+$remainder) : '';
echo $loop .' | '. $quotient .' | '. $remainder .' | '. $f . $s ."<br>";
}
}
public function loop(){
$loop = 0;
$charnum = 65;
for(; $loop < 150; $loop++){
$quotient = intval($loop / 26);
$remainder = $loop % 26;
$f = $quotient>0? chr($charnum+$quotient-1) : '';
$s = $remainder>=0? chr($charnum+$remainder) : '';
echo $loop .' | '. $quotient .' | '. $remainder .' | '. $f . $s ."<br>";
}
}
标签:
excel列序号
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件!
如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
狼山资源网 Copyright www.pvsay.com
暂无“php生成excel列序号代码实例”评论...