How to write php to generate excel column serial number code
This article mainly explains "how to write php to generate excel column serial number code", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "how to write php to generate excel column serial number code"!
The copy code is as follows:
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. "
"
}
}
Thank you for your reading, the above is the content of "how to write php to generate excel column serial number code". After the study of this article, I believe you have a deeper understanding of how to write php to generate excel column serial number code, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!