Alphabet Array in PHP
Need the alphabet as an array in PHP? Here you go!
Here is an array with the uppercase alphabet:
$alphabet = array('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');
Here is an array with the lowercase alphabet:
$alphabet = array('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');
This is simply a resource for me to find whenever I need it.
If it helped you then I'm delighted!
Details
- Title: Alphabet Arrays in PHP
- Published:
- Author: Andrew Young
- Categories: PHP