- Forums
- PHP
- This Is An Easy Way To Generate Alphabet With Php Code
you can use this loop to generate and show all the alphabet letters with your php scripts [1151], Last Updated: Sat May 18, 2024
wallpaperama
Sat Apr 26, 2008
3 Comments
2796 Visits
you can use this loop to generate and show all the alphabet letters with your php scripts
CAPITAL LETTERS
PHPCODE:
<?php
for ($i=65; $i<=90; $i++) {
$Letter = chr($i);
print $Letter ." ";
}
?>
OUTPUT:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
if you want lower case you can use this script:
PHPCODE:
<?phpfor ($i=97; $i<=122; $i++) {
$Letter = chr($i);
print $i.' - '.$Letter ." <br>";
}
?>
hope this helps
https://www.wallpaperama.com/forums/generate-alphabet-with-php-code-t5984.html