Skip to content

Instantly share code, notes, and snippets.

@hbsnow
Created April 8, 2013 05:44
Show Gist options
  • Save hbsnow/5334487 to your computer and use it in GitHub Desktop.
Save hbsnow/5334487 to your computer and use it in GitHub Desktop.
PHPでAからZのアルファベットを連続して出力する
// 小文字
for($i=0; $i<26; $i++){
echo chr(97+$i);
}
// 大文字
for($i=0; $i<26; $i++){
echo chr(65+$i);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment