php数字转化字母

没有废话,直接上方法

function IntToChr($index, $start = 65) {
    $str = '';
    if (floor($index / 26) > 0) {
        $str .= IntToChr(floor($index / 26)-1);
    }
    return $str . chr($index % 26 + $start);
}

猜你喜欢

转载自blog.csdn.net/qq_39870660/article/details/85121706