Created
March 8, 2021 04:14
-
-
Save defrindr/d62a29db29966c54c72d92bc4b29c2b5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Defri indra mahardika | |
* 08-03-2021 | |
* Alphabet Excel | |
*/ | |
$alphabet = "C"; | |
$suffix = ""; | |
$number = 5; | |
$looping = 100; | |
for($i = 0; $i < $looping; $i++){ | |
$alphabet = chr(ord($alphabet) + 1); | |
if($alphabet == "[") { | |
if($suffix == "") $suffix = "A"; | |
else $suffix = chr(ord($suffix) + 1); | |
$alphabet = "A"; | |
} | |
echo "{$suffix}{$alphabet}\n"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment