2014年4月3日

【原】PHPExcel相关

摘要: 将列索引转换为列名/** * 将列索引转换为列名, 用于excel * @param int $index >= 0 */function columnIndexToString($index) { $radix = 26; $digits = array(); while(floor($index / $radix) >= 1) { $abc = floor($index / $radix); $digits[] = chr(ord('A') - 1 + $abc); $index -= $abc * $radix;... 阅读全文

posted @ 2014-04-03 18:57 longhua828 阅读(156) 评论(0) 推荐(0) 编辑

导航